Nirvana JavaScript : DataStream - Receiving DataGroup Events

JavaScript clients can (optionally) act as a DataStream, which allows them to receive events from DataGroups of which they are made members.

The process for enabling DataStream functionality is quite simple:

  1. Invoke the NirvanaSession.start() call with a suitable configuration parameter.
  2. Implement the NirvanaSession.onData(event) callback function.

Note that JavaScript clients can only act as DataStreams (consumers of DataGroup events). The JavaScript API does not currently support publishing to DataGroups or remote management of DataGroup members; DataGroup management is instead supported by Nirvana's Enterprise APIs.