Vixen
02b45cc4
csharp
public sealed class WebSocketSubscriber

A real WebSocket, as a subscriber.

Read the guide page for this →

Remarks

⚠ A send that fails is dropped rather than thrown. One client's dead socket must not be able to fail a broadcast to everybody else, and the socket's own receive loop is what notices it is gone and leaves. That is the same shape as a replication send to a connection that has stopped acknowledging.

Fields and properties (1)

  • public Guid Account

    Whose.

Methods (3)

  • public WebSocketSubscriber(Guid account, WebSocket socket)

    A real WebSocket, as a subscriber.

  • public ValueTask PostAsync(GateEvent message)

    Sends something, and does not care whether it arrives.

  • public void Dispose()

    Releases the write gate.

Used by (1)

  • GateEndpointsVixen.Live.Gate