@@ -29,6 +29,11 @@ class LocationBleAssetsEvents(_MistWebsocket):
2929 UUID of the site to stream events from.
3030 map_id : str
3131 UUID of the map to stream events from.
32+ ping_interval : int, default 30
33+ Interval in seconds to send WebSocket ping frames (keep-alive).
34+ ping_timeout : int, default 10
35+ Time in seconds to wait for a ping response before considering the connection dead.
36+
3237
3338 EXAMPLE
3439 -----------
@@ -54,9 +59,19 @@ class LocationBleAssetsEvents(_MistWebsocket):
5459 time.sleep(60)
5560 """
5661
57- def __init__ (self , mist_session : APISession , site_id : str , map_id : str , ** kwargs ) -> None :
62+ def __init__ (
63+ self ,
64+ mist_session : APISession ,
65+ site_id : str ,
66+ map_id : str ,
67+ ping_interval : int = 30 ,
68+ ping_timeout : int = 10 ,
69+ ) -> None :
5870 super ().__init__ (
59- mist_session , channel = f"/sites/{ site_id } /stats/maps/{ map_id } /assets" , ** kwargs
71+ mist_session ,
72+ channel = f"/sites/{ site_id } /stats/maps/{ map_id } /assets" ,
73+ ping_interval = ping_interval ,
74+ ping_timeout = ping_timeout ,
6075 )
6176
6277
@@ -74,6 +89,10 @@ class LocationConnectedClientsEvents(_MistWebsocket):
7489 UUID of the site to stream events from.
7590 map_id : str
7691 UUID of the map to stream events from.
92+ ping_interval : int, default 30
93+ Interval in seconds to send WebSocket ping frames (keep-alive).
94+ ping_timeout : int, default 10
95+ Time in seconds to wait for a ping response before considering the connection dead.
7796
7897 EXAMPLE
7998 -----------
@@ -99,11 +118,19 @@ class LocationConnectedClientsEvents(_MistWebsocket):
99118 time.sleep(60)
100119 """
101120
102- def __init__ (self , mist_session : APISession , site_id : str , map_id : str , ** kwargs ) -> None :
121+ def __init__ (
122+ self ,
123+ mist_session : APISession ,
124+ site_id : str ,
125+ map_id : str ,
126+ ping_interval : int = 30 ,
127+ ping_timeout : int = 10 ,
128+ ) -> None :
103129 super ().__init__ (
104130 mist_session ,
105131 channel = f"/sites/{ site_id } /stats/maps/{ map_id } /clients" ,
106- ** kwargs ,
132+ ping_interval = ping_interval ,
133+ ping_timeout = ping_timeout ,
107134 )
108135
109136
@@ -121,6 +148,10 @@ class LocationSdkClientsEvents(_MistWebsocket):
121148 UUID of the site to stream events from.
122149 map_id : str
123150 UUID of the map to stream events from.
151+ ping_interval : int, default 30
152+ Interval in seconds to send WebSocket ping frames (keep-alive).
153+ ping_timeout : int, default 10
154+ Time in seconds to wait for a ping response before considering the connection dead.
124155
125156 EXAMPLE
126157 -----------
@@ -146,11 +177,19 @@ class LocationSdkClientsEvents(_MistWebsocket):
146177 time.sleep(60)
147178 """
148179
149- def __init__ (self , mist_session : APISession , site_id : str , map_id : str , ** kwargs ) -> None :
180+ def __init__ (
181+ self ,
182+ mist_session : APISession ,
183+ site_id : str ,
184+ map_id : str ,
185+ ping_interval : int = 30 ,
186+ ping_timeout : int = 10 ,
187+ ) -> None :
150188 super ().__init__ (
151189 mist_session ,
152190 channel = f"/sites/{ site_id } /stats/maps/{ map_id } /sdkclients" ,
153- ** kwargs ,
191+ ping_interval = ping_interval ,
192+ ping_timeout = ping_timeout ,
154193 )
155194
156195
@@ -168,6 +207,10 @@ class LocationUnconnectedClientsEvents(_MistWebsocket):
168207 UUID of the site to stream events from.
169208 map_id : str
170209 UUID of the map to stream events from.
210+ ping_interval : int, default 30
211+ Interval in seconds to send WebSocket ping frames (keep-alive).
212+ ping_timeout : int, default 10
213+ Time in seconds to wait for a ping response before considering the connection dead.
171214
172215 EXAMPLE
173216 -----------
@@ -193,11 +236,19 @@ class LocationUnconnectedClientsEvents(_MistWebsocket):
193236 time.sleep(60)
194237 """
195238
196- def __init__ (self , mist_session : APISession , site_id : str , map_id : str , ** kwargs ) -> None :
239+ def __init__ (
240+ self ,
241+ mist_session : APISession ,
242+ site_id : str ,
243+ map_id : str ,
244+ ping_interval : int = 30 ,
245+ ping_timeout : int = 10 ,
246+ ) -> None :
197247 super ().__init__ (
198248 mist_session ,
199249 channel = f"/sites/{ site_id } /stats/maps/{ map_id } /unconnected_clients" ,
200- ** kwargs ,
250+ ping_interval = ping_interval ,
251+ ping_timeout = ping_timeout ,
201252 )
202253
203254
@@ -215,6 +266,10 @@ class LocationDiscoveredBleAssetsEvents(_MistWebsocket):
215266 UUID of the site to stream events from.
216267 map_id : str
217268 UUID of the map to stream events from.
269+ ping_interval : int, default 30
270+ Interval in seconds to send WebSocket ping frames (keep-alive).
271+ ping_timeout : int, default 10
272+ Time in seconds to wait for a ping response before considering the connection dead.
218273
219274 EXAMPLE
220275 -----------
@@ -240,9 +295,17 @@ class LocationDiscoveredBleAssetsEvents(_MistWebsocket):
240295 time.sleep(60)
241296 """
242297
243- def __init__ (self , mist_session : APISession , site_id : str , map_id : str , ** kwargs ) -> None :
298+ def __init__ (
299+ self ,
300+ mist_session : APISession ,
301+ site_id : str ,
302+ map_id : str ,
303+ ping_interval : int = 30 ,
304+ ping_timeout : int = 10 ,
305+ ) -> None :
244306 super ().__init__ (
245307 mist_session ,
246308 channel = f"/sites/{ site_id } /stats/maps/{ map_id } /discovered_assets" ,
247- ** kwargs ,
309+ ping_interval = ping_interval ,
310+ ping_timeout = ping_timeout ,
248311 )
0 commit comments