MCPcopy Index your code
hub / github.com/pyscript/pyscript / second_handler

Function second_handler

core/tests/python/tests/test_websocket.py:260–263  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

258 first_handler_called = True
259
260 def second_handler(event):
261 nonlocal second_handler_called
262 second_handler_called = True
263 ws.close()
264
265 def on_open(event):
266 # Replace the message handler before any messages arrive.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected