WebSocketResource exposes socket.close()

Allows for simplification of the keepalive construct.
This commit is contained in:
lilia 2015-07-27 18:51:45 -07:00
parent 98edd3939b
commit 8170a7baae
5 changed files with 16 additions and 10 deletions

View file

@ -45,7 +45,7 @@
}
this.wsr = new WebSocketResource(this.socket, this.handleRequest.bind(this));
this.keepalive = new KeepAlive(this.wsr, this.socket);
this.keepalive = new KeepAlive(this.wsr);
},
handleRequest: function(request) {