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 intoacquire
andrelease
.Added processing of
ConnectionError
inStreamingTransport
.Changed arguments of handler function. Now handler function must be defined like
async 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.
- 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
intoSession.__init__()
. - Added argument
disconnect_delay
intoSessionManager.__init__()
.
- Breaking change: Added into the WebSocketTransport the ability to process multi messages from client (#383).
- Added into WebSocketTransport ignoring of empty frames received from client. (#383).
- Added tick after dequeue so heartbeat keeps session live (#265).
- Fix race condition during iteration over sessions (#217).
- Support Python 3.8.
- Fixed examples of using of SockJS server (#264).
- Sync with aiohttp 3.6 (#298)
- Minor code styling cleanups
- Support Python 3.7. The minimal available Python version is 3.5.3 (#240)
- Fix heartbeat (#214)
- Fix compatibility with aiohttp 3.0+ again.
- Fixed compatibility with aiohttp 3.0+ (#169)
- Fixed support for aiohttp 2.0+.
- Mark SockJSRoute.handler and SockJSRoute.websocket as coroutines. #25
- Remove a check for "ORIGIN" header #12
- Process FRAME_MESSAGE_BLOB message type #12
- Fixed lost event-loop argument in sockjs.transports.websocket.WebSocketTransport
- Fixed lost event-loop argument in sockjs.transports.rawwebsocket.RawWebSocketTransport
- Fixed RawRequestMessage. Add raw_header argument (aiohttp 0.21+)
- Fixed many warnings
- Fixed sockjs.route add_endpoint without name bug
- Fixed calls of
SessionManager.aquire()
- was removed the unnecessary second argument. - Fixed the incorrect argument in one call of
cors_headers()
. - Fixed many errors. The code is not perfect, but at least it was working as it should.
- Fixed packaging
- Initial release