示例#1
0
        public void Connect()
        {
            User   = new User();
            Client = new WebsocketClient();

            Client.OnSpontaneousReceive += ClientReceive;

            if (!Client.Initialize())
            {
                throw new Exception("Server unreachable");
            }
        }