wampy.messages.publish module

class publish.Publish(topic, options, *args, **kwargs)[source]

Bases: object

Send a PUBLISH message to the Router.

Message is of the format [PUBLISH, Request|id, Options|dict, Topic|uri, Arguments|list, ArgumentsKw|dict], e.g.

[
    16, 239714735, {}, "com.myapp.mytopic1", [],
    {"color": "orange", "sizes": [23, 42, 7]}
]
WAMP_CODE = 16
message
name = 'publish'