Ejemplo n.º 1
0
 /// <summary>
 /// 触发一个Socket事件
 /// </summary>
 /// <param name="socketEvent">Socket事件</param>
 /// <param name="payload">载荷</param>
 public void Trigger(SocketEvents socketEvent, object payload)
 {
     emmiter.Trigger(socketEvent, payload);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 反注册一条事件
 /// </summary>
 /// <param name="socketEvent">Socket事件</param>
 /// <param name="callback">回调</param>
 public void Off(SocketEvents socketEvent, Action <object> callback)
 {
     emmiter.Off(socketEvent, callback);
 }