from clarabot_nano.utility.serialize import uint2bytes

KEEPALIVE_INTERVAL = 1.0
KEEPALIVE_FAILURE = KEEPALIVE_INTERVAL * 10

QUEUE_PUSH_NOTIFICATION = b"QPN"

# for client request-reply pattern
REQUEST_MESSAGE = b"REQ"
REPLY_MESSAGE = b"REP"
NOTIFY_ID = uint2bytes(0)  # request id that indicates to omit reply
