示例#1
0
 //Close the socket and free the resources.
 public void disconnect()
 {
     this.socket.Close();
     if (this.eventManager != null) {
         this.eventManager.Dispose();
         this.eventManager = null;
     }
     this.closeSocketIO();
 }
示例#2
0
        public PomeloClient(string url)
        {
            string checkedUrl = this.checkUrl(url);

            try{
                this.socket = new Client(checkedUrl);
            } catch (Exception e) {
                Console.WriteLine(string.Format("Error in new SocketIO:{0}", e.Message));
            }

            this.eventManager = new EventManager();
        }