Merge branch 'master' of ssh://numinibsd/git/base/enigma-bbs into 0.0.7-alpha
This commit is contained in:
commit
3f4ce1c0f4
|
@ -41,10 +41,12 @@ function WebSocketClient(ws, req, serverType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
end() {
|
end() {
|
||||||
return ws.terminate();
|
return ws.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
write(data, cb) {
|
write(data, cb) {
|
||||||
|
cb = cb || ( () => { /* eat it up */} ); // handle data writes after close
|
||||||
|
|
||||||
return this.ws.send(data, { binary : true }, cb);
|
return this.ws.send(data, { binary : true }, cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue