Use timeout to unblock recv in websocket transport
This commit is contained in:
parent
978a669d16
commit
f5b157014d
5 changed files with 30 additions and 11 deletions
|
|
@ -64,9 +64,6 @@ io.on('connection', function(socket) {
|
|||
socket.on('bbb', function(payload, fn) {
|
||||
if (fn) fn(payload);
|
||||
});
|
||||
socket.on('wait_with_disconnect', function() {
|
||||
socket.emit('wait_with_disconnect_response');
|
||||
});
|
||||
});
|
||||
|
||||
io.of('/chat').on('connection', function(socket) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue