Config¶
-
class
Config
¶ -
_max_queue_size
: number or nil¶
-
_max_frame_size
: number¶
-
_max_message_size
: number¶
-
_accept_unmasked_frames
: boolean¶
-
extensions
: list[table]¶
-
protocols
: list[str]¶
-
_keep_alive
: number or nil¶
-
max_queue_size
(size)¶ Set the max message queue size
- Parameters
size (number or nil) –
- Return type
-
max_message_size
(size)¶ Set the max message size (Default 64mb)
- Parameters
size (number or nil) –
- Return type
-
max_frame_size
(size)¶ Set the max frame size (Default 16mb)
- Parameters
size (number or nil) –
- Return type
-
max_frames_without_pong
(size)¶ Set the max frames that can be received while waiting for a pong (Default 4)
- Parameters
size (number or nil) –
- Return type
-
extension
(name, params)¶ Add an entry to the enabled extensions
- Parameters
name (str) –
params (list[str]) –
- Return type
-