ISockratesSocketService

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract suspend fun connect()
Link copied to clipboard
abstract suspend fun disconnect()
Link copied to clipboard
abstract fun refreshUrl(peerId: String)

Generates a new socket-service URL with the provided peerId.

Link copied to clipboard
abstract suspend fun requestResponse(event: Int, payload: ByteArray?, messageId: String? = null): ByteArray?
Link copied to clipboard
abstract suspend fun send(event: Int, payload: ByteArray?, messageId: String? = null)
Link copied to clipboard
abstract fun subscribe(event: Int, listener: SocketServiceEventListener)
Link copied to clipboard
abstract fun unsubscribe(event: Int, listener: SocketServiceEventListener)