public ChatClient() { chatTranslation = ChatTranslations.Get(); clientScope = new Scope <object>(); clientScope.Add(ChatConstants.ChatUpdateLisener, this); _client = new WebSocketOODSSClient(ServerAddress, PortNumber, chatTranslation, clientScope); }
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(); }