WebsocketAction

Describes how a single protocol step addresses the relay server over a WebSocket transport.

A NetworkAction carries no transport detail of its own; this interface adds the WebSocket-specific routing that SilentShardWebsocketClient needs to open a connection and, where required, issue an HTTP request for the same step.

The default client consumes these values verbatim — appending connectionUrl to the configured base URL and sending protocol as the WebSocket subprotocol. A custom SilentShardWebsocketClient subclass may read them, rewrite them, or ignore them in favour of its own routing.

Properties

Link copied to clipboard
abstract val connectionUrl: String

Path appended to the configured base WebSocket URL to reach this step's endpoint.

Link copied to clipboard
abstract val postRequestUrl: String

Path appended to the base HTTP URL for the request-response steps that run over HTTP rather than the WebSocket.

Link copied to clipboard
abstract val protocol: String

Value sent as the Sec-WebSocket-Protocol header when opening the connection.