2011-06-11 21:48:46 +00:00
|
|
|
``tornado.websocket`` --- Bidirectional communication to the browser
|
|
|
|
====================================================================
|
2011-06-09 06:58:58 +00:00
|
|
|
|
|
|
|
.. automodule:: tornado.websocket
|
2012-01-08 08:01:18 +00:00
|
|
|
|
|
|
|
.. autoclass:: WebSocketHandler
|
2012-01-23 01:52:43 +00:00
|
|
|
|
|
|
|
Event handlers
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. automethod:: WebSocketHandler.open
|
|
|
|
.. automethod:: WebSocketHandler.on_message
|
|
|
|
.. automethod:: WebSocketHandler.on_close
|
|
|
|
.. automethod:: WebSocketHandler.select_subprotocol
|
|
|
|
|
|
|
|
Output
|
|
|
|
------
|
|
|
|
|
|
|
|
.. automethod:: WebSocketHandler.write_message
|
|
|
|
.. automethod:: WebSocketHandler.close
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. automethod:: WebSocketHandler.allow_draft76
|
|
|
|
.. automethod:: WebSocketHandler.get_websocket_scheme
|
|
|
|
|
|
|
|
Other
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. automethod:: WebSocketHandler.async_callback
|
2012-09-29 23:57:04 +00:00
|
|
|
.. automethod:: WebSocketHandler.ping
|
|
|
|
.. automethod:: WebSocketHandler.on_pong
|
2013-03-15 03:45:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
Client-side support
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. autofunction:: websocket_connect
|
|
|
|
.. autoclass:: WebSocketClientConnection
|
|
|
|
:members:
|