MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test

Function test

tests/performance/server_receive.py:5–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test():
6 s = socketio.Server(async_handlers=False)
7 start = time.time()
8 count = 0
9 s._handle_eio_connect('123', 'environ')
10 s._handle_eio_message('123', '0')
11 while True:
12 s._handle_eio_message('123', '2["test","hello"]')
13 count += 1
14 if time.time() - start >= 5:
15 break
16 return count
17
18
19if __name__ == '__main__':

Callers 1

server_receive.pyFile · 0.70

Calls 2

_handle_eio_connectMethod · 0.95
_handle_eio_messageMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…