-
Added argument
cors_configinto functionadd_endpoint()
to support of CORS settings fromaiohttp_cors. -
Added arguments
heartbeat_delayanddisconnect_delay
into functionadd_endpoint(). -
Function
add_endpoint()now returns all registered routes. -
Replaced returning instances of error HTTP responses
on raising its as exceptions. -
Changed name of some routes.
-
Heartbeat task moved from
SessionManagerintoSession. -
Methods
_acquireand_releaseofSessionsrenamed into
acquireandrelease. -
Added processing of
ConnectionErrorinStreamingTransport. -
Changed arguments of handler function. Now handler function must be defined
likeasync def handler(manager, session, msg): -
Constants:
- FRAME_OPEN
- FRAME_CLOSE
- FRAME_MESSAGE
- FRAME_MESSAGE_BLOB
- FRAME_HEARTBEAT
replaced by
Frameenums with corresponding values. -
Constants:
- MSG_OPEN
- MSG_MESSAGE
- MSG_CLOSE
- MSG_CLOSED
replaced by
MsgTypeenums with corresponding values. -
Constants:
- STATE_NEW
- STATE_OPEN
- STATE_CLOSING
- STATE_CLOSED
replaced by
SessionStateenums with corresponding values.
0.12.0 (2022-02-08)
- Breaking change: Removed argument
timeoutfromSession.__init__()
andSessionManager.__init__(). - Breaking change: Argument
heartbeatofSessionManager.__init__()
renamed intoheartbeat_delay. - Breaking change:
Session.registryrenamed intoSession.app. - Breaking change: Deleted method
SessionManager.route_url(). - Breaking change: Dropped support of Python < 3.7
- Fixed processing of heartbeats and a session expiration.
- Fixed ping-pong based heartbeats for web-socket connections.
- Added arguments
heartbeat_delayanddisconnect_delayinto
Session.__init__(). - Added argument
disconnect_delayintoSessionManager.__init__().