This is archived documentation for an older version of Nirvana (v2.0). Please refer to documentation for the latest version if required.

Nirvana Realm Example Code

The examples below demonstrate the types of action that can be performed or asked of a Nirvana realm by a Nirvana client.

 

 

Add a Nirvana Realm into another's namespace

Example that demonstrates how to make one Nirvana realm aware of another

Create a Nirvana Join between two channels

An example that joins to channels together. All data published to the source of a channel join will automatically be sent to the destination of a channel join. Message Selectors can be applied to joins ensuring that only content meeting specific criteria is sent to the destination channel.

Delete a Nirvana Join

An example showing how to remove a join between 2 channels.

Get the last event ID on a channel

This example applications gets the event id of the last event on a specific Nirvana channel.