ReloadEndpoint

Handler of the reload endpoint (/reload) which manages WebSocket connections for live reloading.

Whenever a client sends a message, it is broadcast to all connected clients.

A distinction between sender and receiver is not made. In practice, the sender is Quarkdown CLI and the receivers are the browser clients that were served by the live preview endpoint (/live/<file>).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun handleRequest(session: WebSocketSession)

Handles the logic for the WebSocket endpoint.