mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use socket.io connect method instead of reconnect
the reconnect method tries 10 times by default, but we want to manage reconnections ourselves
This commit is contained in:
parent
69e957419d
commit
d57e191ad0
1 changed files with 3 additions and 1 deletions
|
@ -207,7 +207,9 @@ define [], () ->
|
|||
delete @$scope.connection.reconnection_countdown
|
||||
return if @connected
|
||||
@$scope.connection.reconnecting = true
|
||||
@ide.socket.socket.reconnect()
|
||||
# use socket.io connect() here to make a single attempt, the
|
||||
# reconnect() method makes multiple attempts
|
||||
@ide.socket.socket.connect()
|
||||
setTimeout (=> @startAutoReconnectCountdown() if !@connected), 2000
|
||||
|
||||
disconnectIfInactive: ()->
|
||||
|
|
Loading…
Reference in a new issue