MCPcopy
hub / github.com/aio-libs/aiohttp / ping

Method ping

aiohttp/web_ws.py:122–127  ·  view source on GitHub ↗
(self, message='b')

Source from the content-addressed store, hash-verified

120 return self._exception
121
122 def ping(self, message='b'):
123 if self._writer is None:
124 raise RuntimeError('Call .prepare() first')
125 if self._closed:
126 raise RuntimeError('websocket connection is closing')
127 self._writer.ping(message)
128
129 def pong(self, message='b'):
130 # unsolicited pong

Callers 8

handlerMethod · 0.95
test_nonstarted_pingMethod · 0.95
test_ping_closedMethod · 0.95
handlerFunction · 0.95
goMethod · 0.45
test_pingFunction · 0.45
test_ping_pongFunction · 0.45
test_ping_pong_manualFunction · 0.45

Calls

no outgoing calls

Tested by 8

handlerMethod · 0.76
test_nonstarted_pingMethod · 0.76
test_ping_closedMethod · 0.76
handlerFunction · 0.76
goMethod · 0.36
test_pingFunction · 0.36
test_ping_pongFunction · 0.36
test_ping_pong_manualFunction · 0.36