Vixen
02b45cc4
csharp
public sealed class WebSocketGateSocket

A real ClientWebSocket.

Read the guide page for this →

Fields and properties (1)

  • public bool Connected

    Whether it is up.

Methods (4)

  • public Task ConnectAsync(Uri address, string token, CancellationToken cancellation)

    Opens it.

  • public Task<string?> ReceiveAsync(CancellationToken cancellation)

    Waits for the next thing the gate said.

  • public Task SendAsync(string text, CancellationToken cancellation)

    Says something. The gate treats anything as a ping.

  • public ValueTask DisposeAsync()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Used by (1)

  • GateConnectionVixen.Live.Client