wampy.messages.subscribe module

class subscribe.Subscribe(topic, options=None)[source]

Bases: object

Send a SUBSCRIBE message to the Router.

Message is of the format [SUBSCRIBE, Request|id, Options|dict, Topic|uri], e.g.

[
    32, 713845233, {}, "com.myapp.mytopic1"
]
WAMP_CODE = 32
message
name = 'subscribe'