Package-level declarations

Types

Link copied to clipboard
@Serializable
interface ErrorResponse
Link copied to clipboard
object ErrorResponseSerializer : KSerializer<ErrorResponse>
Link copied to clipboard
interface EventEmitter
Link copied to clipboard
Link copied to clipboard
interface EventHandler
Link copied to clipboard
typealias EventSubscriber<T> = suspend (Event<T>) -> Unit
Link copied to clipboard
annotation class ForceJson
Link copied to clipboard
annotation class HttpMethod(val type: HttpMethodType)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class MatrixServerException(val statusCode: HttpStatusCode, val errorResponse: ErrorResponse) : Exception
Link copied to clipboard
data class UserInfo(val userId: UserId, val deviceId: String, val signingPublicKey: Key.Ed25519Key, val identityPublicKey: Key.Curve25519Key)
Link copied to clipboard
annotation class WithoutAuth

Functions

Link copied to clipboard
inline fun <T : EventContent> EventEmitter.subscribe(noinline subscriber: EventSubscriber<T>)

Subscribers have to be aware to unsubscribe() when the scope of the subscriber is destroyed.

Link copied to clipboard

Subscribe events with a flow.

Link copied to clipboard
inline fun <T : EventContent> EventEmitter.unsubscribe(noinline subscriber: EventSubscriber<T>)