added checking for response from vr engine and automatic reconnect

This commit is contained in:
Sem van der Hoeven
2020-10-16 12:15:58 +02:00
parent 014191b350
commit 2f81f32a03
2 changed files with 31 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ namespace ClientApp.Utils
engineConnection = EngineConnection.INSTANCE;
engineConnection.OnNoTunnelId = RetryEngineConnection;
engineConnection.OnSuccessFullConnection = engineConnected;
engineConnection.OnEngineDisconnect = RetryEngineConnection;
if (!engineConnection.Connected) engineConnection.Connect();
}