Socket

actual class Socket(endpoint: String, config: SocketOptions?, build: SocketBuilder.() -> Unit)
expect class Socket(endpoint: String, config: SocketOptions? = null, build: SocketBuilder.() -> Unit)
actual class Socket(endpoint: String, config: SocketOptions?, build: SocketBuilder.() -> Unit)

Constructors

Link copied to clipboard
actual constructor(endpoint: String, config: SocketOptions?, build: SocketBuilder.() -> Unit)
expect constructor(endpoint: String, config: SocketOptions? = null, build: SocketBuilder.() -> Unit)
actual constructor(endpoint: String, config: SocketOptions?, build: SocketBuilder.() -> Unit)

Functions

Link copied to clipboard
actual fun connect()
expect fun connect()
actual fun connect()
Link copied to clipboard
actual fun disconnect()
expect fun disconnect()
actual fun disconnect()
Link copied to clipboard
actual fun emit(event: String, data: String)
actual fun emit(event: String, data: JsonArray)
actual fun emit(event: String, data: JsonObject)
expect fun emit(event: String, data: String)
expect fun emit(event: String, data: JsonArray)
expect fun emit(event: String, data: JsonObject)
actual fun emit(event: String, data: String)
actual fun emit(event: String, data: JsonArray)
actual fun emit(event: String, data: JsonObject)
Link copied to clipboard
actual suspend fun emitAck(event: String, data: String): String?
expect suspend fun emitAck(event: String, data: String): String?
actual suspend fun emitAck(event: String, data: String): String?
Link copied to clipboard
actual fun emitAckAsync(event: String, data: String)
expect fun emitAckAsync(event: String, data: String)
actual fun emitAckAsync(event: String, data: String)
Link copied to clipboard
actual fun isConnected(): Boolean
expect fun isConnected(): Boolean
actual fun isConnected(): Boolean