scala - Scalatra, Atmosphere, and sending messages to clients from outside the message handler -


i'm reading through official scalatra documentation, particularly guide on using scalatra atmosphere. page explains how use scalatra , atmosphere write websocket based application responds incoming messages outgoing messages.

for purposes of application connects multiple different messaging sources, how send outgoing messages elsewhere in application?

possible examples include:

  • messages sent result of incoming http request
  • periodic messages on timer
  • messages pulled queue
  • etc.

some of these messages potentially target multiple clients.

i'm bit confused official docs on matter because examples happen various incoming message handlers , i'm not sure reference atmosphere system or where/how i'm allowed call it.

i hope can clarify.


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -