Small tweaks

- Fixed errros in JS
- Style change in HubEndpoint
This commit is contained in:
David Fowler 2016-10-28 09:41:45 -07:00
parent caad670cde
commit e59865a11d
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,9 @@ namespace SocketsSample
protected override void Initialize(object endpoint)
{
((Hub)endpoint).Clients = this;
var hub = (Hub)endpoint;
hub.Clients = this;
base.Initialize(endpoint);
}

View File

@ -37,7 +37,7 @@
}
// Response
if (typeof response.id === "number") {
if (response.Id) {
var cb = calls[response.Id];
delete calls[response.Id];