...
.. warning::
**Version 2.0 introduces a backwards-incompatible change in the**
:meth:`~protocol.WebSocketCommonProtocol.send`,
:meth:`~protocol.WebSocketCommonProtocol.ping`, and
:meth:`~protocol.WebSocketCommonProtocol.pong` **APIs.**
**If you're upgrading from 1.x or earlier, please read this carefully.**
These APIs used to be functions. Now they're coroutines.
Instead of::
websocket.send(message)
you must now write::
await websocket.send(message)
Also:
* Added flow control for outgoing data.