Class BiDiOptionsBuilder
Provides a fluent API for configuring BiDi connection options, such as the underlying transport mechanism.
public sealed class BiDiOptionsBuilder
- Inheritance
-
BiDiOptionsBuilder
- Inherited Members
Methods
UseWebSocket(Action<ClientWebSocketOptions>?)
Configures the BiDi connection to use a WebSocket transport.
public BiDiOptionsBuilder UseWebSocket(Action<ClientWebSocketOptions>? configure = null)
Parameters
configureAction<ClientWebSocketOptions>An optional action to configure the ClientWebSocketOptions before connecting.
Returns
- BiDiOptionsBuilder
The current BiDiOptionsBuilder instance for chaining.
Remarks
WebSocket is the default transport; calling this method is only necessary when you need to customize the underlying ClientWebSocketOptions (e.g., to set headers, proxy, or certificates).