/// <summary> /// Gets called when websocket connection is opened. /// </summary> protected override void OnOpen() { base.OnOpen(); if (Config.DebugLog != (int)DebugState.None) { VDebug.LogFormat("[Volplane (Websocket Service)] Socket connection opened on port: {0:D}.", Config.LocalWebsocketPort); } }
/// <summary> /// Gets called when websocket connection is closed. /// </summary> /// <param name="e">Closed event data.</param> protected override void OnClose(CloseEventArgs e) { base.OnClose(e); // TODO: Inform VolplaneAgent? if (Config.DebugLog != (int)DebugState.None) { VDebug.LogFormat("[Volplane (Websocket Service)] Socket connection closed. Code: {0:D}.", e.Code); } }