Creating a channel factory

Obtaining a channel

A channel is an object that represents a WAMP session, and provides services for server communication.
In order to obtain a channel, use the channel factory you’ve created earlier and call CreateChannel extension method:

Consuming PubSub topics capabilities

In order to use pub/sub capabilities, we call channel’s GetSubject method: this method has a generic type parameter representing the type of the event published to the Subject. In addition, this method receives the uri of the topic we want to subscribe/publish to.