MCPcopy Create free account
hub / github.com/RawdogReverend/TermNet / start_server

Method start_server

backend/termnet/main.py:204–217  ·  view source on GitHub ↗

Start the WebSocket server

(self)

Source from the content-addressed store, hash-verified

202 pass
203
204 async def start_server(self):
205 """Start the WebSocket server"""
206 try:
207 async with websockets.serve(
208 self.handle_client,
209 self.host,
210 self.port,
211 ping_interval=20,
212 ping_timeout=10,
213 close_timeout=5
214 ):
215 await asyncio.Future() # Run forever
216 except Exception:
217 pass
218
219 async def stop_server(self):
220 """Stop the server and clean up"""

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected