pyropy / fastapi-socketio

Easily integrate socket.io with your FastAPI app 🚀
Apache License 2.0
328 stars 31 forks source link

add register_namespace property #35

Closed TomW1605 closed 1 year ago

TomW1605 commented 1 year ago

this is to allow the registration of class based namespaces as described in the docs: python-socketio: Class-Based Namespaces

simply add this to the end of socket_manager.py

@property
def register_namespace(self):
    return self._sio.register_namespace
TomW1605 commented 1 year ago

any chance this could be added? happy to do a PR with it