C# Class Tmds.WebSockets.WebSocketExtensions

Afficher le fichier Open project: tmds/Tmds.SockJS

Méthodes publiques

Méthode 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 méthode

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

ReceiveCloseAsync() public static méthode

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

ReceiveTextAsync() public static méthode

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

SendAsync() public static méthode

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

SendAsync() public static méthode

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

SendAsync() public static méthode

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

SendCloseAsync() public static méthode

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

SendCloseAsync() public static méthode

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
Résultat Task