Skip to content

Releases: aio-libs/sockjs

0.13.0 (2024-06-13)

13 Jun 12:31
a341ba8
Compare
Choose a tag to compare
  • Added argument cors_config into function add_endpoint()
    to support of CORS settings from aiohttp_cors.

  • Added arguments heartbeat_delay and disconnect_delay
    into function add_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 into Session.

  • Methods _acquire and _release of Sessions renamed into
    acquire and release.

  • Added processing of ConnectionError in StreamingTransport.

  • 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.

0.12.0 (2022-02-08)

  • Breaking change: Removed argument timeout from Session.__init__()
    and SessionManager.__init__().
  • Breaking change: Argument heartbeat of SessionManager.__init__()
    renamed into heartbeat_delay.
  • Breaking change: Session.registry renamed into Session.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 and disconnect_delay into
    Session.__init__().
  • Added argument disconnect_delay into SessionManager.__init__().

socksjs 0.11.0 release

22 Oct 10:45
a5f99ff
Compare
Choose a tag to compare

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

20 Oct 19:02
Compare
Choose a tag to compare

Changes

  • Sync with aiohttp 3.6 (#298)

sockjs 0.9.0 release

11 Oct 16:53
Compare
Choose a tag to compare

Changes

  • Support Python 3.7. The minimal available Python version is 3.5.3 (#240)

sockjs 0.8.0 release

15 Jun 10:38
Compare
Choose a tag to compare

Changes

  • Fix heartbeat (#214)

sockjs 0.7.1 release

05 Mar 08:59
Compare
Choose a tag to compare

Changes

  • Fix broken websocket transport

sockjs 0.7.0 release

25 Feb 16:38
Compare
Choose a tag to compare

Fix broken compatibility with aiohttp 3.0

sockjs 0.5

26 Sep 18:41
Compare
Choose a tag to compare

CHANGES

  • Mark SockJSRoute.handler and SockJSRoute.websocket as coroutines. #25
  • Remove a check for "ORIGIN" header #12
  • Process FRAME_MESSAGE_BLOB message type #12

sockjs 0.4 release

26 Sep 18:33
Compare
Choose a tag to compare

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

07 Aug 21:59
Compare
Choose a tag to compare

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.