public Socket(string ip, int port, Emitter.Listener connectCallback) { this.ip = ip; this.port = port; callbacks.Add(OpCodeReceive.ONCONNECT, connectCallback); StartClient(); }
public void Off(OpCodeReceive opCode, Emitter.Listener callback) { callbacks.Remove(opCode); }
public void On(OpCodeReceive opCode, Emitter.Listener callback) { callbacks.Add(opCode, callback); }