disconnect

abstract suspend fun disconnect(): Result<Unit>

Disconnect from the Socket.IO server. Cleans up all event handlers and closes the connection.

Return

Result indicating success or failure with error details