I have an actor which is launched with application, running in the background watching for certain changes and if there are any reporting them. At the moment it just a pri
Just the other day I wrote this, which will be included in Play 2.3. You can copy it to your own application for now:
https://github.com/jroper/ReactiveMaps/blob/websocket-actor/app/actors/WebSocketActor.scala
You pass it a Props object, and it will create the actor for you. You send to the WebSocket by sending to context.parent.