Просмотр исходного кода

Try to reconnect when the editor cursor is moved.

Shane Kilkelly 11 лет назад
Родитель
Сommit
8bd83f64e0

+ 4 - 0
services/web/public/coffee/ide/connection/ConnectionManager.coffee

@@ -24,6 +24,10 @@ define [], () ->
 				if !@connected
 					@tryReconnect()
 
+			@$scope.$on 'cursor:editor:update', () =>
+				if !@connected
+					@tryReconnect()
+
 			@ide.socket = io.connect null,
 				reconnect: false
 				"force new connection": true