suiWebSocketClient

Creates a new instance of SuiWebSocketClient using the provided configuration.

The configuration for the client is defined by a lambda function that takes an instance of ClientConfig as its receiver and modifies its properties as needed. The lambda function is passed to the function as a parameter of type Config.() -> Unit.

Example usage:

val suiWSClient = suiWebSocketClient { endpoint = EndPoint.MAINNET }

Return

An instance of SuiWebSocketClient configured according to the provided ClientConfig instance.

Parameters

builderAction

A lambda function that modifies the properties of a ClientConfig instance.