Behind the scenes connectivity

Framing

class ngtt.protocol.NGTTHeaderType(value)

An enumeration.

DATA_STREAM = 4

sent by the client

DATA_STREAM_CONFIRM = 5

sent by the server

DATA_STREAM_REJECT = 6

sent by the server

LOGS = 3

sent by the client

ORDER = 1

sent by the server

ORDER_CONFIRM = 2

sent by the client

PING = 0

a PING, sent by the client, server responds alike

SYNC_BAOB_REQUEST = 7

sent by the client

SYNC_BAOB_RESPONSE = 8

sent by the server

class ngtt.protocol.NGTTFrame(tid: int, packet_type: ngtt.protocol.NGTTHeaderType, data: bytes)
property real_data: Union[dict, list]
Returns

JSON unserialized data