Optional
blockIndicates if the async fn connect()
method should return immediately
or wait for connection to occur or fail before returning.
(default is true
)
Optional
retryA custom retry interval in milliseconds.
Optional
strategyConnectStrategy used to configure the retry or fallback behavior. In retry mode, the WebSocket will continuously attempt to connect to the server. (default is {link ConnectStrategy.Retry}).
Optional
timeoutA custom connection timeout in milliseconds.
Optional
urlA custom URL that will change the current URL of the WebSocket. If supplied, the URL will override the use of resolver.
Generated using TypeDoc
ConnectOptions
is used to configure theWebSocket
connectivity behavior.