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

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -