createSubscription abstract method
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});