C# Class Tmds.SockJS.Receiver

Show file Open project: tmds/Tmds.SockJS Class Usage Examples

Public Methods

Method Description
CloseBuffer ( WebSocketCloseStatus status, string description ) : byte[]
OpenAsync ( ) : Task
OpenSessionAsync ( ) : Task
Receiver ( HttpContext context, ReceiverType type, int maxResponseLength, string htmlFileCallback ) : System
SendCloseAsync ( byte buffer, CancellationToken cancellationToken ) : Task
SendHeartBeatAsync ( ) : Task
SendMessagesAsync ( List sends ) : Task

Private Methods

Method Description
Receiver ( ) : System
SendRawAsync ( RawSendType type, ArraySegment buffer, CancellationToken cancellationToken ) : Task
SendRawAsync ( RawSendType type, byte buffer, CancellationToken cancellationToken ) : Task

Method Details

CloseBuffer() public static method

public static CloseBuffer ( WebSocketCloseStatus status, string description ) : byte[]
status WebSocketCloseStatus
description string
return byte[]

OpenAsync() public method

public OpenAsync ( ) : Task
return Task

OpenSessionAsync() public method

public OpenSessionAsync ( ) : Task
return Task

Receiver() public method

public Receiver ( HttpContext context, ReceiverType type, int maxResponseLength, string htmlFileCallback ) : System
context HttpContext
type ReceiverType
maxResponseLength int
htmlFileCallback string
return System

SendCloseAsync() public method

public SendCloseAsync ( byte buffer, CancellationToken cancellationToken ) : Task
buffer byte
cancellationToken CancellationToken
return Task

SendHeartBeatAsync() public method

public SendHeartBeatAsync ( ) : Task
return Task

SendMessagesAsync() public method

public SendMessagesAsync ( List sends ) : Task
sends List
return Task