6fae07d29e
-add {‘sd_blob_hash’: …, ‘sd_blob_size ‘: …} query type with {‘send_sd_blob’: True/False, ‘needed_blobs’: []} response this allows the reflector client to know how much of a stream reflector already has covered, as to minimize the number of subsequent requests and prevent streams from being partially reflected -remove empty {} request
27 lines
631 B
Python
27 lines
631 B
Python
REFLECTOR_V1 = 0
|
|
REFLECTOR_V2 = 1
|
|
|
|
|
|
class ReflectorClientVersionError(Exception):
|
|
"""
|
|
Raised by reflector server if client sends an incompatible or unknown version
|
|
"""
|
|
|
|
|
|
class ReflectorRequestError(Exception):
|
|
"""
|
|
Raised by reflector server if client sends a message without the required fields
|
|
"""
|
|
|
|
|
|
class ReflectorRequestDecodeError(Exception):
|
|
"""
|
|
Raised by reflector server if client sends an invalid json request
|
|
"""
|
|
|
|
|
|
class IncompleteResponse(Exception):
|
|
"""
|
|
Raised by reflector server when client sends a portion of a json request,
|
|
used buffering the incoming request
|
|
"""
|