@@ -21,7 +21,8 @@ class Server(object):
21
21
is stored in an in-memory structure, so the use of
22
22
multiple connected servers is not possible.
23
23
:param logger: To enable logging set to ``True`` or pass a logger object to
24
- use. To disable logging set to ``False``.
24
+ use. To disable logging set to ``False``. The default is
25
+ ``False``.
25
26
:param binary: ``True`` to support binary payloads, ``False`` to treat all
26
27
payloads as text. On Python 2, if this is set to ``True``,
27
28
``unicode`` values are treated as text, and ``str`` and
@@ -48,26 +49,32 @@ class Server(object):
48
49
The first async mode that has all its dependencies
49
50
installed is then one that is chosen.
50
51
:param ping_timeout: The time in seconds that the client waits for the
51
- server to respond before disconnecting.
52
+ server to respond before disconnecting. The default
53
+ is 60 seconds.
52
54
:param ping_interval: The interval in seconds at which the client pings
53
- the server.
55
+ the server. The default is 25 seconds.
54
56
:param max_http_buffer_size: The maximum size of a message when using the
55
- polling transport.
56
- :param allow_upgrades: Whether to allow transport upgrades or not.
57
+ polling transport. The default is 100,000,000
58
+ bytes.
59
+ :param allow_upgrades: Whether to allow transport upgrades or not. The
60
+ default is ``True``.
57
61
:param http_compression: Whether to compress packages when using the
58
- polling transport.
62
+ polling transport. The default is ``True``.
59
63
:param compression_threshold: Only compress messages when their byte size
60
- is greater than this value.
64
+ is greater than this value. The default is
65
+ 1024 bytes.
61
66
:param cookie: Name of the HTTP cookie that contains the client session
62
67
id. If set to ``None``, a cookie is not sent to the client.
68
+ The default is ``'io'``.
63
69
:param cors_allowed_origins: List of origins that are allowed to connect
64
70
to this server. All origins are allowed by
65
71
default.
66
72
:param cors_credentials: Whether credentials (cookies, authentication) are
67
- allowed in requests to this server.
73
+ allowed in requests to this server. The default is
74
+ ``True``.
68
75
:param engineio_logger: To enable Engine.IO logging set to ``True`` or pass
69
76
a logger object to use. To disable logging set to
70
- ``False``.
77
+ ``False``. The default is ``False``.
71
78
"""
72
79
def __init__ (self , client_manager = None , logger = False , binary = False ,
73
80
json = None , async_handlers = False , ** kwargs ):
0 commit comments