mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-23 16:40:52 +00:00
Undo change to the way ripple-lib unsubscribed from ws events.
This commit is contained in:
@@ -158,8 +158,7 @@ Server.prototype.connect = function() {
|
||||
self._set_state('offline');
|
||||
|
||||
// Prevent additional events from this socket
|
||||
ws.removeAllListeners();
|
||||
ws.on('error', function() {});
|
||||
ws.onopen = ws.onerror = ws.onclose = ws.onmessage = function () {};
|
||||
|
||||
// Should we be connected?
|
||||
if (!self._should_connect) return;
|
||||
|
||||
Reference in New Issue
Block a user