C# Class Tmds.WebSockets.WebSocketExtensions

Mostrar archivo Open project: tmds/Tmds.SockJS

Public Methods

Method Description
ReceiveBinaryAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
ReceiveCloseAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task
ReceiveTextAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task
SendAsync ( this webSocket, ArraySegment message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
SendAsync ( this webSocket, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
SendAsync ( this webSockets, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task[]
SendCloseAsync ( this webSocket, WebSocketCloseStatus closeStatus, CancellationToken cancellationToken ) : Task
SendCloseAsync ( this webSocket, WebSocketCloseStatus closeStatus = WebSocketCloseStatus.NormalClosure, string statusDescription = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Method Details

ReceiveBinaryAsync() public static method

public static ReceiveBinaryAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
webSocket this
cancellationToken System.Threading.CancellationToken
return Task>

ReceiveCloseAsync() public static method

public static ReceiveCloseAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task
webSocket this
cancellationToken System.Threading.CancellationToken
return Task

ReceiveTextAsync() public static method

public static ReceiveTextAsync ( this webSocket, CancellationToken cancellationToken = default(CancellationToken) ) : Task
webSocket this
cancellationToken System.Threading.CancellationToken
return Task

SendAsync() public static method

public static SendAsync ( this webSocket, ArraySegment message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
webSocket this
message ArraySegment
cancellationToken System.Threading.CancellationToken
return Task

SendAsync() public static method

public static SendAsync ( this webSocket, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task
webSocket this
message string
cancellationToken System.Threading.CancellationToken
return Task

SendAsync() public static method

public static SendAsync ( this webSockets, string message, CancellationToken cancellationToken = default(CancellationToken) ) : Task[]
webSockets this
message string
cancellationToken System.Threading.CancellationToken
return Task[]

SendCloseAsync() public static method

public static SendCloseAsync ( this webSocket, WebSocketCloseStatus closeStatus, CancellationToken cancellationToken ) : Task
webSocket this
closeStatus WebSocketCloseStatus
cancellationToken System.Threading.CancellationToken
return Task

SendCloseAsync() public static method

public static SendCloseAsync ( this webSocket, WebSocketCloseStatus closeStatus = WebSocketCloseStatus.NormalClosure, string statusDescription = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
webSocket this
closeStatus WebSocketCloseStatus
statusDescription string
cancellationToken System.Threading.CancellationToken
return Task