subscribe

public abstract S subscribe(Topic topic)

Creates a new Subscription to a provided topic supplying this subscription to the client as a result.

Return

a message describing the created subscription

Parameters

topic

a topic to subscribe the client to