//public override void SendUpdateToClient(UpdateMessage update) //{ // Console.WriteLine("Send update..."); // WebSocketOODSSServer server = (WebSocketOODSSServer) LocalScope.Get(SessionObjects.WebSocketOODSSServer); //} /// <summary> /// send update message to client /// </summary> /// <param name="update">update message</param> /// <param name="receivingSessionId">sessionId of the client</param> public override void SendUpdateToClient(UpdateMessage update, string receivingSessionId) { Console.WriteLine("Send Update Message Please"); WebSocketOODSSServer server = (WebSocketOODSSServer)LocalScope.Get(SessionObjects.WebSocketOODSSServer); server.SendUpdateMessage(receivingSessionId, update); }
public static void StartServer() { SimplTypesScope chatTranslation = ChatTranslations.Get(); Scope <object> applicationScope = new Scope <object>(); IPAddress[] locals = NetTools.GetAllIPAddressesForLocalhost(); WebSocketOODSSServer chatServer = new WebSocketOODSSServer(chatTranslation, applicationScope, _idleTimeout, _MTU); chatServer.Start(); }
public TestServer(int port) { _applicationObjectScope = new Scope <object>(); _serviceTypesScope = TestServiceTypesScope.Get(); _webSocketOODSSServer = new WebSocketOODSSServer(_serviceTypesScope, _applicationObjectScope, -1, -1, port); }