Ejemplo n.º 1
0
def on_error(msg):
    err = unpack(msg)
    print(str(err))
Ejemplo n.º 2
0
def seeya(msg):
    data = unpack(msg.data)
    assert data == TEST_JSON
    server.push('quit')
    server.disconnect()
Ejemplo n.º 3
0
def handler(msg):
    data = unpack(msg.data)
    assert data == TEST_JSON
    server.push('bar')
Ejemplo n.º 4
0
def callback(msg):
    data = unpack(msg.data)
    assert data == TEST_JSON
    server.push(msg.answer(), TEST_JSON)