C# Class Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler

Show file Open project: SignalR/SignalR Class Usage Examples

Private Properties

Property Type Description
GetWebSocketState WebSocketState
IsClosedOrClosedSent bool
IsFatalException bool
ProcessWebSocketRequestAsync Task
ProcessWebSocketRequestAsync Task
SendAsync Task
SendAsync Task

Public Methods

Method Description
CloseAsync ( ) : Task
OnClose ( ) : void
OnError ( ) : void
OnMessage ( byte message ) : void
OnMessage ( string message ) : void
OnOpen ( ) : void
Send ( string message ) : Task

Protected Methods

Method Description
WebSocketHandler ( int maxIncomingMessageSize ) : System

Private Methods

Method Description
GetWebSocketState ( WebSocket webSocket ) : WebSocketState
IsClosedOrClosedSent ( WebSocket webSocket ) : bool
IsFatalException ( Exception ex ) : bool
ProcessWebSocketRequestAsync ( WebSocket webSocket, CancellationToken disconnectToken ) : Task
ProcessWebSocketRequestAsync ( WebSocket webSocket, CancellationToken disconnectToken, Func messageRetriever, object state ) : Task
SendAsync ( ArraySegment message, WebSocketMessageType messageType, bool endOfMessage = true ) : Task
SendAsync ( string message ) : Task

Method Details

CloseAsync() public method

public CloseAsync ( ) : Task
return Task

OnClose() public method

public OnClose ( ) : void
return void

OnError() public method

public OnError ( ) : void
return void

OnMessage() public method

public OnMessage ( byte message ) : void
message byte
return void

OnMessage() public method

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

OnOpen() public method

public OnOpen ( ) : void
return void

Send() public method

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

WebSocketHandler() protected method

protected WebSocketHandler ( int maxIncomingMessageSize ) : System
maxIncomingMessageSize int
return System