Ejemplo n.º 1
0
 /// <inheritdoc />
 public Task CloseAsync(CancellationToken ct) =>
 SystemWebSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, string.Empty, ct);
Ejemplo n.º 2
0
 /// <inheritdoc />
 public Task CloseAsync(Net.CloseStatusCode code, string comment = null, CancellationToken cancellationToken = default) =>
 SystemWebSocket.CloseAsync(MapCloseStatus(code), comment ?? string.Empty, cancellationToken);