Example #1
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (WebSocketsWrapper.IsConnected())
     {
         WebSocketsWrapper.Disconnect();
     }
 }
Example #2
0
 /// <summary>
 /// Called when "Disconnect" button is clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonDisconnect_Click(object sender, EventArgs e)
 {
     WebSocketsWrapper.Disconnect();
 }