getClient

fun getClient(): Socket

This function returns a socket client with specific options. The options include reconnection, reconnection attempts, reconnection delay, reconnection delay max, randomization factor, timeout, and auth. The socket client is set to print incoming and outgoing events.

Return

The socket client.

Example usage:

val socketClient = SocketManager.getClient()