Skip to content

Commit 0ac3e15

Browse files
committed
Remove unnecessary onopen callback.
1 parent 2dd3058 commit 0ac3e15

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

client/live.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ var newConnection = function(handlers) {
2020
}, 2000);
2121
};
2222

23-
sock.onopen = function() {
24-
// This callback also fires on a reconnect.
25-
handlers.ok();
26-
};
27-
2823
sock.onmessage = function(e) {
2924
// This assumes that all data sent via the websocket is JSON.
3025
var msg = JSON.parse(e.data);

0 commit comments

Comments
 (0)