SocketLike

interface SocketLike

Minimal abstraction of a socket supporting emitWithAck semantics.

Properties

Link copied to clipboard
open val id: String?
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun emit(event: String, data: Map<String, Any?>)
Link copied to clipboard
abstract fun emitWithAck(event: String, data: Map<String, Any?>, ack: (Map<String, Any?>) -> Unit)