-------------
.. automethod:: WebSocketHandler.check_origin
+ .. automethod:: WebSocketHandler.get_compression_options
.. automethod:: WebSocketHandler.set_nodelay
Other
return None
def get_compression_options(self):
+ """Override to return compression options for the connection.
+
+ If this method returns None (the default), compression will
+ be disabled. If it returns a dict (even an empty one), it
+ will be enabled. The contents of the dict may be used to
+ control the memory and CPU usage of the compression,
+ but no such options are currently implemented.
+
+ .. versionadded:: 4.1
+ """
return None
def open(self):
Takes a url and returns a Future whose result is a
`WebSocketClientConnection`.
+ ``compression_options`` is interpreted in the same way as the
+ return value of `.WebSocketHandler.get_compression_options`.
+
.. versionchanged:: 3.2
Also accepts ``HTTPRequest`` objects in place of urls.
+
+ .. versionchanged:: 4.1
+ Added ``compression_options``.
"""
if io_loop is None:
io_loop = IOLoop.current()