Exemplo n.º 1
0
 private void sendMessage(UserSocketModel user, string eventChannel, object content)
 {
     if (specialHandle(user, eventChannel, content))
     {
         var socketClientMessageModel = new SocketClientMessageModel(user.ToUserModel(), eventChannel, content);
         ServerLogger.LogTransport("Send Message", socketClientMessageModel);
         user.Socket.Emit("Client.Message", socketClientMessageModel);
     }
 }
Exemplo n.º 2
0
 private void sendMessage(UserSocketModel user, string eventChannel, object content)
 {
     if (specialHandle(user, eventChannel, content))
         user.Socket.Emit("Client.Message", new SocketClientMessageModel(user.ToUserModel(), eventChannel, content));
 }