Advertisement
Guest User

Untitled

a guest
Jun 14th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1.         private void bConnect_Click(object sender, EventArgs e)
  2.         {
  3.             client = new WebSocketClient(tbAddress.Text)
  4.             {
  5.                 OnReceive = OnReceive,
  6.                 OnSend = OnSend,
  7.                 OnConnect = OnConnect,
  8.                 OnConnected = OnConnected,
  9.                 OnDisconnect = OnDisconnect
  10.             };
  11.  
  12.             client.ConnectTimeout = new TimeSpan(0, 0, 5);
  13.             client.Connect();
  14.         }
  15.  
  16.         private void OnConnect(UserContext context)
  17.         {
  18.             throw new Exception();
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement