Subscribing Asynchronously

An example that demonstrates how to subscribe to a stream asynchronously.

Name

Example_11_SubscribingAsynchronously

Description

This example demonstrates how to subscribe to a stream and retrieve data asynchronously. This is a variation of Example 1 that produces very similar output, since the difference is not in the data but in how the data is retrieved. In particular, this example shows how to define and register a listener.

Notable Classes and Methods

subscription.setOption

SampleListener

subscription.s()