RealtimeWebsocket

Interface for a websocket connection to the Supabase Realtime service.

Inheritors

Properties

Link copied to clipboard

Whether there are incoming messages that can be received.

Functions

Link copied to clipboard
abstract suspend fun blockUntilDisconnect()

Block the current coroutine until the websocket is disconnected.

Link copied to clipboard
abstract fun disconnect()

Disconnect the websocket.

Link copied to clipboard
abstract suspend fun receive(): RealtimeMessage

Receive a message from the websocket.

Link copied to clipboard
abstract suspend fun send(message: RealtimeMessage)

Send a message to the websocket.