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