wampy.messages.hello module

class hello.Hello(realm, roles)[source]

Bases: object

Send a HELLO message to the Router.

Message is of the format [HELLO, Realm|uri, Details|dict], e.g.

[
    HELLO, "realm", {
        "roles": {"subscriber": {}, "publisher": {}},
        "authmethods": ["wampcra"],
        "authid": "peter"
    }
]
WAMP_CODE = 1
message
name = 'hello'