csharp
public interface IGateSocketA socket to a gate. The one this abstracts over is allowed to be missing.
Remarks
⚠ A seam so that a test does not need a server — and, less obviously, so that a platform whose WebSocket is not ClientWebSocket (a console SDK, a browser build) can supply its own without this file knowing.
Fields and properties (1)
bool ConnectedWhether it is up.
Methods (3)
Task ConnectAsync(Uri address, string token, CancellationToken cancellation)Opens it.
Task<string?> ReceiveAsync(CancellationToken cancellation)Waits for the next thing the gate said.
Task SendAsync(string text, CancellationToken cancellation)Says something. The gate treats anything as a ping.
Used by (4)
- FakeSocketVixen.Live.Client.Tests
- GateConnectionVixen.Live.Client
- SocketFactoryVixen.Live.Client.Tests
- WebSocketGateSocketVixen.Live.Client