Skip to content

Commit

Permalink
Documented protocol defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Aug 14, 2017
1 parent e6c9109 commit e6985cc
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions engineio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,32 @@ class Server(object):
The first async mode that has all its dependencies
installed is then one that is chosen.
:param ping_timeout: The time in seconds that the client waits for the
server to respond before disconnecting.
server to respond before disconnecting. The default
is 60 seconds.
:param ping_interval: The interval in seconds at which the client pings
the server.
the server. The default is 25 seconds.
:param max_http_buffer_size: The maximum size of a message when using the
polling transport.
:param allow_upgrades: Whether to allow transport upgrades or not.
polling transport. The default is 100,000,000
bytes.
:param allow_upgrades: Whether to allow transport upgrades or not. The
default is ``True``.
:param http_compression: Whether to compress packages when using the
polling transport.
polling transport. The default is ``True``.
:param compression_threshold: Only compress messages when their byte size
is greater than this value.
is greater than this value. The default is
1024 bytes.
:param cookie: Name of the HTTP cookie that contains the client session
id. If set to ``None``, a cookie is not sent to the client.
The default is ``'io'``.
:param cors_allowed_origins: List of origins that are allowed to connect
to this server. All origins are allowed by
default.
:param cors_credentials: Whether credentials (cookies, authentication) are
allowed in requests to this server.
allowed in requests to this server. The default
is ``True``.
:param logger: To enable logging set to ``True`` or pass a logger object to
use. To disable logging set to ``False``.
use. To disable logging set to ``False``. The default is
``False``.
:param json: An alternative json module to use for encoding and decoding
packets. Custom json modules must have ``dumps`` and ``loads``
functions that are compatible with the standard library
Expand Down

0 comments on commit e6985cc

Please sign in to comment.