mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01: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:
@@ -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: ()->
|
||||
|
||||
Reference in New Issue
Block a user