sui Web Socket Client
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 }Content copied to clipboard
Return
An instance of SuiWebSocketClient configured according to the provided ClientConfig instance.
Parameters
builder Action
A lambda function that modifies the properties of a ClientConfig instance.