Package-level declarations

Types

Link copied to clipboard
class ApiStream(val route: String) : ImmutableApiStream

Represents a persistent connection with a Kobweb server that you can continuously send and receive events on.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun ApiStream.connect(handleTextEvent: (ApiStreamListener.TextReceivedContext) -> Unit)
Link copied to clipboard
@Composable
fun rememberApiStream(route: String, streamListener: ApiStreamListener): ApiStream
@Composable
fun rememberApiStream(route: String, handleTextEvent: (ApiStreamListener.TextReceivedContext) -> Unit): ApiStream