C# Class RohBot.WebSocketClient

Show file Open project: Rohansi/RohBot

Public Methods

Method Description
Close ( ) : void
SendAsync ( string message ) : Task

Protected Methods

Method Description
OnClose ( ) : void
OnError ( Exception exception ) : void
OnMessage ( string message ) : void
OnOpen ( ) : void
WebSocketClient ( ) : System

Private Methods

Method Description
Disconnect ( ) : void
Error ( Exception exception ) : void
Open ( IDisposable websocketHandle, WebSocket websocket, CancellationToken cancellationToken ) : void
ReadWebSocketAsync ( CancellationToken ct ) : void
WriteWebSocketAsync ( CancellationToken ct ) : void

Method Details

Close() public method

public Close ( ) : void
return void

OnClose() protected method

protected OnClose ( ) : void
return void

OnError() protected method

protected OnError ( Exception exception ) : void
exception System.Exception
return void

OnMessage() protected method

protected OnMessage ( string message ) : void
message string
return void

OnOpen() protected method

protected OnOpen ( ) : void
return void

SendAsync() public method

public SendAsync ( string message ) : Task
message string
return Task

WebSocketClient() protected method

protected WebSocketClient ( ) : System
return System