Creating WebSocket subscription server with Akka

Akka documentation contains a basic example of a simple WebSocket server, but it just sends back a message it has received. Building on top of it to have an Actor handling user messages and sending data back to the user is not obvious. Let’s build a simple WebSocket server with a /clock endpoint. After connecting, a client can subscribe to receive time in the requested timezones. It is not a very useful application, but the concept is the same if you would like to build a subscription for chat, real-time game, or stock price updates. [Read More]