diff --git a/docs/api.md b/docs/api.md index 2bb0db0..a22343b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -137,6 +137,8 @@ class WebSocket: # uuid for socket data, used to free data after socket closes def get_user_data_uuid(self): def get_user_data(self): + # clone the current instance to preserve it (you need to watch for closed connections when using it) + def clone(self): def get_buffered_amount(self): def subscribe(self, topic): def unsubscribe(self, topic): diff --git a/pyproject.toml b/pyproject.toml index 9b37d98..cbf827d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "socketify" -version = "0.0.8" +version = "0.0.9" authors = [ { name="Ciro Spaciari", email="ciro.spaciari@gmail.com" }, ] diff --git a/setup.py b/setup.py index fc6491a..be08b79 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="socketify", - version="0.0.8", + version="0.0.9", platforms=["any"], author="Ciro Spaciari", author_email="ciro.spaciari@gmail.com",