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:
Brian Gough 2016-10-31 15:27:26 +00:00
parent 69e957419d
commit d57e191ad0

View file

@ -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: ()->