webSocketEvents
fun Route.webSocketEvents(route: String = Routes.DEFAULT_EVENTS_ROUTE, preprocess: suspend DefaultWebSocketServerSession.(EventReference) -> Unit = {})
Installs a WebSocket route to your application which is supposed to propagate events to clients. This function is supposed to be called once.
See also
Throws
if the provided route does not container group segment placeholder.
if the application does not have WebSocketEvents plugin installed.