derekcollison/nats — pull request #42 by brockgr (2012-08-24 04:01:44+00:00)
Title: Publishing user now passed to client callback events.

We are looking to build an authorization layer on top of NATs, so as a starting point I have enhanced the server so that it will pass the user publishing a message on to the subscriber.

Since the NATS server is authenticating incoming connections, I thought it is safest to let it control the labelling of the messages.

To to do this I have extended the MSG message to take an optional @username immediately after the MSG. This means that current unauthenticated messages will not change.

Please let me know if this is the kind of thing you would like to pull in, or if you would like any changes to the implementation.

.. Gavin