//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(); }
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(); }