subscribe

open override fun <T> subscribe(messageType: KClass<T>): <Error class: unknown class><T>

Subscribe to a specific WebSocket message type. Returns a flow that emits each deserialized message of type T.

See also