Closed Roxe322 closed 2 years ago
Otherwise, it could be just proxy-properties, without any params:
@property
def enter_room(self):
return self._sio.enter_room
@property
def leave_room(self):
return self._sio.leave_room
So I made a pull request: https://github.com/pyropy/fastapi-socketio/pull/25
Hello! In https://github.com/pyropy/fastapi-socketio/pull/20 you added ability to join and leave rooms, but you made it as properties so when you call
sio.enter_room(sid, room)
it results to
It should be not properties but methods.