-
Added argument
cors_config
into functionadd_endpoint()
to support of CORS settings fromaiohttp_cors
. -
Added arguments
heartbeat_delay
anddisconnect_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
SessionManager
intoSession
. -
Methods
_acquire
and_release
ofSessions
renamed into
acquire
andrelease
. -
Added processing of
ConnectionError
inStreamingTransport
. -
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
Frame
enums with corresponding values. -
Constants:
- MSG_OPEN
- MSG_MESSAGE
- MSG_CLOSE
- MSG_CLOSED
replaced by
MsgType
enums with corresponding values. -
Constants:
- STATE_NEW
- STATE_OPEN
- STATE_CLOSING
- STATE_CLOSED
replaced by
SessionState
enums with corresponding values.
0.12.0 (2022-02-08)
- Breaking change: Removed argument
timeout
fromSession.__init__()
andSessionManager.__init__()
. - Breaking change: Argument
heartbeat
ofSessionManager.__init__()
renamed intoheartbeat_delay
. - Breaking change:
Session.registry
renamed 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_delay
anddisconnect_delay
into
Session.__init__()
. - Added argument
disconnect_delay
intoSessionManager.__init__()
.