Resubscribe on reconnect

stable
Jesús Espino 2017-03-31 14:14:50 +02:00
parent 4b8271000a
commit 4edbc4f1ed
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class EventsService
path = _.trimStart(url, "/")
url = "#{scheme}//#{loc.host}/#{path}"
@.error = false
@.ws = new @win.WebSocket(url)
@.ws.addEventListener("open", @.onOpen)
@.ws.addEventListener("message", @.onMessage)