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

Show file Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
ReadMessageAsync ( WebSocket webSocket, int bufferSize, int maxMessageSize, CancellationToken disconnectToken ) : Task

Private Methods

Method Description
BufferSliceToByteArray ( byte buffer, int count ) : byte[]
BufferSliceToString ( byte buffer, int count ) : string
TryGetMessage ( WebSocketReceiveResult receiveResult, byte buffer, WebSocketMessage &message ) : bool

Method Details

ReadMessageAsync() public static method

public static ReadMessageAsync ( WebSocket webSocket, int bufferSize, int maxMessageSize, CancellationToken disconnectToken ) : Task
webSocket System.Net.WebSockets.WebSocket
bufferSize int
maxMessageSize int
disconnectToken System.Threading.CancellationToken
return Task