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

Method pong

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

Source from the content-addressed store, hash-verified

127 self._writer.ping(message)
128
129 def pong(self, message='b'):
130 # unsolicited pong
131 if self._writer is None:
132 raise RuntimeError('Call .prepare() first')
133 if self._closed:
134 raise RuntimeError('websocket connection is closing')
135 self._writer.pong(message)
136
137 def send_str(self, data):
138 if self._writer is None:

Callers 7

handlerMethod · 0.95
test_nonstarted_pongMethod · 0.95
test_pong_closedMethod · 0.95
receiveMethod · 0.45
goMethod · 0.45
test_pongFunction · 0.45
test_ping_pong_manualFunction · 0.45

Calls

no outgoing calls

Tested by 6

handlerMethod · 0.76
test_nonstarted_pongMethod · 0.76
test_pong_closedMethod · 0.76
goMethod · 0.36
test_pongFunction · 0.36
test_ping_pong_manualFunction · 0.36