Example #1
0
 private void SendButton_Click(object sender, EventArgs e)
 {
     if (input.Binary)
     {
         context.Send(input.Bytes, WebSocketMessageType.Binary);
     }
     else
     {
         context.Send(input.Bytes, WebSocketMessageType.Text);
     }
 }