Fix multiple calls to done

Triggered by multiple keepalives.
This commit is contained in:
lilia 2015-07-28 16:34:13 -07:00
parent 9f8b632fb5
commit ebca58b282

View file

@ -129,7 +129,7 @@
}); });
}); });
var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), { var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), {
keepalive: { path: '/v1/keepalive' } keepalive: { path: '/v1/keepalive', disconnect: true }
}); });
}); });
@ -146,7 +146,7 @@
}); });
}); });
var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), { var resource = new WebSocketResource(new WebSocket('ws://localhost:8081'), {
keepalive: true keepalive: { disconnect: true }
}); });
}); });