Skip to content

Release v0.2.0

Choose a tag to compare

@bandirom bandirom released this 10 Aug 14:35
· 3 commits to main since this release
86d4cee

Changed

  • Breaking: Dropped support for Python 3.9 and 3.10.
    Now only Python 3.11–3.13 are supported.
  • BaseSocketHandler now inherits from socketio.AsyncNamespace instead of a custom base class.
    • Simplifies integration with the official Socket.IO API.
    • Native support for standard events (on_connect, on_disconnect, etc.) without extra boilerplate.
  • Renamed: register_events() → register_handlers() for consistency with FastAPI naming conventions.
  • Updated internal logic in SocketManager.register_handlers() for compatibility with the new SocketHandler type.

Added

  • Graceful shutdown support: await self._sio.shutdown() is now called during SocketManager cleanup.

Fixed

  • Improved compatibility with asynchronous event handlers.

Migration Notes

  • If your handlers had methods named after events (on_*), they will now be called automatically without explicit registration.
  • Update your code to call register_handlers() instead of register_events().