MCPcopy Index your code
hub / github.com/python-websockets/websockets / ProtocolError

Class ProtocolError

src/websockets/exceptions.py:369–378  ·  view source on GitHub ↗

Raised when receiving or sending a frame that breaks the protocol. The Sans-I/O implementation raises this exception when: * receiving or sending a frame that contains invalid data; * receiving or sending an invalid sequence of frames.

Source from the content-addressed store, hash-verified

367
368
369class ProtocolError(WebSocketException):
370 """
371 Raised when receiving or sending a frame that breaks the protocol.
372
373 The Sans-I/O implementation raises this exception when:
374
375 * receiving or sending a frame that contains invalid data;
376 * receiving or sending an invalid sequence of frames.
377
378 """
379
380
381class PayloadTooBig(WebSocketException):

Callers 13

parseMethod · 0.85
checkMethod · 0.85
parseMethod · 0.85
checkMethod · 0.85
send_continuationMethod · 0.85
send_textMethod · 0.85
send_binaryMethod · 0.85
send_closeMethod · 0.85
recv_frameMethod · 0.85
readMethod · 0.85
read_messageMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_strMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…