openSse

abstract fun <DATA> openSse(pathSegments: Array<out String>, dataDeserializer: DeserializationStrategy<DATA>): Flow<DATA>

Open a server-side-event stream.

Parameters

pathSegments

The URL path to the event stream to listen to.

dataDeserializer

deserializer to use for all events emitted.