satori-python-server 0.13.2__tar.gz → 0.13.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-server
3
- Version: 0.13.2
3
+ Version: 0.13.3
4
4
  Summary: Satori Protocol SDK for python, specify server part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -27,7 +27,7 @@ classifiers = [
27
27
  "Programming Language :: Python :: 3.12",
28
28
  "Operating System :: OS Independent",
29
29
  ]
30
- version = "0.13.2"
30
+ version = "0.13.3"
31
31
 
32
32
  [project.license]
33
33
  text = "MIT"
@@ -75,6 +75,7 @@ class Server(Service, RouterMixin):
75
75
  routers: list[Router]
76
76
  _adapters: list[Adapter]
77
77
  connections: list[WebsocketConnection]
78
+ session: aiohttp.ClientSession
78
79
 
79
80
  def __init__(
80
81
  self,
@@ -96,7 +97,6 @@ class Server(Service, RouterMixin):
96
97
  self.routers = []
97
98
  self.routes = {}
98
99
  self.webhooks = webhooks or []
99
- self.session = aiohttp.ClientSession()
100
100
  self._tempdir = TemporaryDirectory()
101
101
  self.proxy_url_mapping = {}
102
102
  super().__init__()
@@ -253,6 +253,7 @@ class Server(Service, RouterMixin):
253
253
  return res
254
254
 
255
255
  async def launch(self, manager: Launart):
256
+ self.session = aiohttp.ClientSession()
256
257
  for _adapter in self._adapters:
257
258
  manager.add_component(_adapter)
258
259