Exemple #1
0
        private void OnRaiseServerMsg(ServerMsgEventArgs e)
        {
            var handler = OnServerMsg;

            if (handler == null)
            {
                return;
            }

            Console.WriteLine("Sending out server message event for " + e.Channel + "\n" + e);
            handler(this, e);
        }
 protected void RecvHandler(ServerMsgEventArgs e)
 {
     OnRecv?.Invoke(this, e);
 }
 protected void SendHandler(ServerMsgEventArgs e)
 {
     OnSend?.Invoke(this, e);
 }