MCPcopy Create free account
hub / github.com/apache/httpd / client_ping

Method client_ping

test/pyhttpd/ws_util.py:81–84  ·  view source on GitHub ↗
(cls, data: bytes, mask: bytes = None)

Source from the content-addressed store, hash-verified

79
80 @classmethod
81 def client_ping(cls, data: bytes, mask: bytes = None) -> 'WsFrame':
82 if mask is None:
83 mask = bytes.fromhex('00 00 00 00')
84 return WsFrame(opcode=WsFrame.PING, fin=True, mask=mask, data=data)
85
86 @classmethod
87 def client_close(cls, code: int, reason: str = None,

Callers 2

Calls 1

WsFrameClass · 0.85

Tested by 2