Fixed typos.
This commit is contained in:
parent
d7ae804500
commit
d8cec02fd8
1 changed files with 3 additions and 3 deletions
|
@ -151,20 +151,20 @@ class _webSocketSingleton extends App.Controller
|
||||||
ping: =>
|
ping: =>
|
||||||
return if @backend is 'ajax'
|
return if @backend is 'ajax'
|
||||||
|
|
||||||
@log 'debug', 'send websockend ping'
|
@log 'debug', 'send websocket ping'
|
||||||
@send( { action: 'ping' } )
|
@send( { action: 'ping' } )
|
||||||
|
|
||||||
# check if ping is back within 2 min
|
# check if ping is back within 2 min
|
||||||
App.Delay.clear 'websocket-ping-check', 'ws'
|
App.Delay.clear 'websocket-ping-check', 'ws'
|
||||||
check = =>
|
check = =>
|
||||||
@log 'notice', 'no websockend ping response, reconnect...'
|
@log 'notice', 'no websocket ping response, reconnect...'
|
||||||
@close()
|
@close()
|
||||||
App.Delay.set check, 90000, 'websocket-ping-check', 'ws'
|
App.Delay.set check, 90000, 'websocket-ping-check', 'ws'
|
||||||
|
|
||||||
pong: ->
|
pong: ->
|
||||||
return if @backend is 'ajax'
|
return if @backend is 'ajax'
|
||||||
|
|
||||||
@log 'debug', 'received websockend ping'
|
@log 'debug', 'received websocket ping'
|
||||||
|
|
||||||
# test again after 1 min
|
# test again after 1 min
|
||||||
App.Delay.set @ping, 60000, 'websocket-pong', 'ws'
|
App.Delay.set @ping, 60000, 'websocket-pong', 'ws'
|
||||||
|
|
Loading…
Reference in a new issue