disco.gateway.client

Constants

{'type': 'assign', 'targets': ['TEN_MEGABYTES'], 'value': 10490000}

{'type': 'assign', 'targets': ['ZLIB_SUFFIX'], 'value': '\x00\x00\xff\xff'}

Classes

GatewayClient

Inherits From LoggingClass

Functions

init(self, client, max_reconnects, encoder=json, zlib_stream_enabled=True, ipc=None)

send(self, op, data)

_send(self, op, data)

heartbeat_task(self, interval)

handle_dispatch(self, packet)

handleheartbeat(self, </code>)

handleheartbeat_acknowledge(self, </code>)

handlereconnect(self, </code>)

handleinvalid_session(self, </code>)

handle_hello(self, packet)

on_ready(self, ready)

onresumed(self, </code>)

connect_and_run(self, gateway_url)

on_message(self, msg)

on_error(self, error)

on_open(self)

on_close(self, code, reason)

run(self)

results matching ""

    No results matching ""