SocketManager

This object manages the socket connection for the application. It provides a function to get a socket client with specific options.

Functions

Link copied to clipboard
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.