Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from pyropy/add-join-room
Browse files Browse the repository at this point in the history
Add enter room and leave room
  • Loading branch information
pyropy authored Jun 17, 2021
2 parents f33c1c6 + d581ddf commit c97f4cb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

* [Matthew D. Scholefield](https://github.com/MatthewScholefield) - Added cors allowed origins for AsyncServer [#7](https://github.com/pyropy/fastapi-socketio/pull/7)
* [Aaron Tolman](https://github.com/tolmanam) - Reported issue with broken pip download [#5](https://github.com/pyropy/fastapi-socketio/issues/5)
* [Khiem Doan](https://github.com/khiemdoan) - Helped with cleaning up old unused dependencies[#5](https://github.com/pyropy/fastapi-socketio/issues/15)
11 changes: 10 additions & 1 deletion fastapi_socketio/socket_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import socketio
from typing import Union
from typing import Optional, Union
from fastapi import FastAPI


Expand Down Expand Up @@ -87,3 +87,12 @@ def start_background_task(self):
@property
def sleep(self):
return self._sio.sleep

@property
def enter_room(self, sid: str, room: str, namespace: Optional[str] = None):
return self._sio.enter_room(sid, room, namespace)

@property
def leave_room(self, sid: str, room: str, namespace: Optional[str] = None):
return self._sio.leave_room(sid, room, namespace)

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup
import os

VERSION = "0.0.6"
VERSION = "0.0.7"


def get_long_description():
Expand Down

0 comments on commit c97f4cb

Please sign in to comment.