From aa6b5700ce9bfcd4f175af4b74ff99ee6f178b6d Mon Sep 17 00:00:00 2001 From: AURUMVORXX Date: Tue, 28 Oct 2025 00:47:37 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D0=B8=D0=BD=D1=85=D1=80=D0=BE=D0=BD?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BA=D0=BB=D0=B8=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D1=81=D0=BA=D0=B8=D1=85=20=D1=82=D0=BE=D0=BA=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=20=D0=BF=D1=80=D0=B8=20=D1=80=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D1=82=D0=B5=20=D0=B1=D1=8D=D0=BA=D0=B5=D0=BD?= =?UTF-8?q?=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/server/main.nut | 2 ++ src/pyg2o/server.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/server/main.nut b/include/server/main.nut index ccbb955..32e7b93 100644 --- a/include/server/main.nut +++ b/include/server/main.nut @@ -55,6 +55,8 @@ class PyG2O { if (!_silent) print("[PyG2O] Successfully connected to " + url); + + _send({"init_temp_tokens": _clientTokens}); } function _onClose(url, message) diff --git a/src/pyg2o/server.py b/src/pyg2o/server.py index 7a79cac..a98c633 100644 --- a/src/pyg2o/server.py +++ b/src/pyg2o/server.py @@ -154,5 +154,8 @@ class Server: case {'remove_temp_token': token}: cls._temp_tokens.remove(token) + case {'init_temp_tokens': tokens}: + cls._temp_tokens = cls._temp_tokens + tokens.items() + case _: raise ValueError(f'Неподдерживаемый тип PyG2O сообщения: {message}')