Exemple #1
0
 private async void Server_OnMessageReceived(object sender, MessageReceivedEventArgs e)
 {
     if (e is StringMessageArgs)
     {
         await ComponentHandler.HandleInput(new MessageContainer(e.SessionId, this, (e as StringMessageArgs).Parameters));
     }
     else if (e is JsonMessageArgs)
     {
         await ComponentHandler.HandleInput(new MessageContainer(e.SessionId, this, (e as JsonMessageArgs).Json));
     }
 }