• Start

Languages

/

Swift

/

Methods

kill

The kill() method for the SurrealDB Swift SDK stops a running live query.

Kills a running live query by its id, ending the associated AsyncStream.

Method Syntax

try await client.kill(liveQueryID: id)
ArgumentsDescription
liveQueryID The id of the live query to kill, available as event.queryID on received events.
try await client.kill(liveQueryID: event.queryID)

Was this page helpful?