Releases: aio-libs/sockjs
0.13.0 (2024-06-13)
-
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__()
.
socksjs 0.11.0 release
Changes
- 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).
socksjs 0.10.0 release
Changes
- Sync with aiohttp 3.6 (#298)
sockjs 0.9.0 release
Changes
- Support Python 3.7. The minimal available Python version is 3.5.3 (#240)
sockjs 0.8.0 release
Changes
- Fix heartbeat (#214)
sockjs 0.7.1 release
Changes
- Fix broken websocket transport
sockjs 0.7.0 release
Fix broken compatibility with aiohttp 3.0
sockjs 0.5
sockjs 0.4 release
Changes
- 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
sockjs 0.3 release
CHANGES
- 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.