Package-level declarations

Types

Link copied to clipboard
data class ClosedWebsocket(val status: WsStatus = NORMAL) : RuntimeException
Link copied to clipboard

This class is a test client for a PolyHandler which allows the invocation of the underlying handlers.

Link copied to clipboard

A class that is used for offline testing of a routed Sse, without starting up a Server.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Converts a PolyHandler into an HttpHandler, dispatching SSE requests to the SSE handler (forwarded as a true byte stream via piped streams so persistent streams do not block) and all other requests to the HTTP handler.

Link copied to clipboard

Use this client nd then close it