createSubscription abstract method

Future<Subscription> createSubscription(
  1. String name,
  2. String topic, {
  3. Uri endpoint,
})

Create a new subscription named name listening on topic topic.

If endpoint is passed this will create a push subscription.

Otherwise this will create a pull subscription.

The name can be either an absolute name or a relative name.

Returns a Future which completes with the newly created subscription.

Implementation

Future<Subscription> createSubscription(String name, String topic,
    {Uri endpoint});