kmp-ktor-realtime
Installation
SKILL.md
When to Use This Skill
Use this skill when you need to:
- Serve WebSocket clients from Ktor: chat, live dashboards, collaborative editing, multiplayer games
- Route many message types to handlers without one central
when - Run an authoritative loop (a game tick, an order book) on one thread, fed by client messages
- Broadcast to many sessions without one slow client stalling the rest
- Stop cleanly: drain queues, notify clients, save state
Do NOT use this skill when:
- You only need request/response HTTP; use
kmp-ktor-server - You need server-sent events to a browser; see
kmp-network-layer's SSE section - You need login or tokens; use
kmp-ktor-auth-service, then authenticate the socket's first message or upgrade request
Trigger keywords: WebSocket server, Ktor WebSockets, real-time server, game server, multiplayer server, tick loop, authoritative server, message router, broadcast, backpressure, slow client, session lifecycle, graceful shutdown, webSocket route.