0.6.0
Add Session.upgrade_protocol
behaviour
This can be used to upgrade the underlying TCP connection to a new incompatible protocol, like websockets.
Calling this new behaviour allows this TCP connection to be upgraded to another handler, serving another protocol (e.g. WebSocket).
Note that this method does not send an HTTP Response with a status of 101. This needs to be done before calling this behaviour. Also, the passed in notify
will not have its methods accepted or connected called, as the connection is already established.
After calling this behaviour, this session and the connected Handler instance will not be called again, so it is necessary to do any required clean up right after this call.
See:
[0.6.0] - 2024-03-12
Added
- Add possibility to upgrade the current session to a new TCP handler (PR #75)