diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-05 00:51:32 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-05 00:51:32 -0400 |
| commit | d0b4cd4f7e6364a35a420f2f3b0fcdbb502d8a9a (patch) | |
| tree | b05b32e1f283946346e96c9ded24f0966ce584ed /public/js/lib/ws.js | |
| parent | 18648921f75a7c458cf0c951c249b28a48f08a6b (diff) | |
basic routing
Diffstat (limited to 'public/js/lib/ws.js')
| -rw-r--r-- | public/js/lib/ws.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/lib/ws.js b/public/js/lib/ws.js index 37a8248..fbf9211 100644 --- a/public/js/lib/ws.js +++ b/public/js/lib/ws.js @@ -12,6 +12,7 @@ var ws = function(){ socket.on('connect', ws.connected) socket.on('reconnect', ws.reconnected) socket.on('disconnect', ws.disconnected) + return socket } ws.ready = function (obj) { @@ -19,11 +20,11 @@ var ws = function(){ // presumably we might have reconnected? if (socketIsReady) { - this.chatView.fetchAndDedupe() + // this.chatView.fetchAndDedupe() } else { socketIsReady = true - this.checkIfLoaded() + // this.checkIfLoaded() } } @@ -40,4 +41,4 @@ var ws = function(){ console.log(new Date(), "disconnected") // this.chatView.appendInfo({ content: "Disconnected." }) } -}
\ No newline at end of file +} |
