TestWsClient

A class that is used for offline testing of a routed Websocket, without starting up a Server. Calls are routed synchronously to the receiving Websocket, and error are propagated to the caller.

Functions

Link copied to clipboard
open override fun close(status: WsStatus)
Link copied to clipboard
fun error(throwable: Throwable)

Push an error to the Websocket

Link copied to clipboard
open override fun received(): Sequence<WsMessage>
Link copied to clipboard
open override fun send(message: WsMessage)