Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void bConnect_Click(object sender, EventArgs e)
- {
- client = new WebSocketClient(tbAddress.Text)
- {
- OnReceive = OnReceive,
- OnSend = OnSend,
- OnConnect = OnConnect,
- OnConnected = OnConnected,
- OnDisconnect = OnDisconnect
- };
- client.ConnectTimeout = new TimeSpan(0, 0, 5);
- client.Connect();
- }
- private void OnConnect(UserContext context)
- {
- throw new Exception();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement