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

Method decode

src/websockets/extensions/base.py:21–36  ·  view source on GitHub ↗

Decode an incoming frame. Args: frame: Incoming frame. max_size: Maximum payload size in bytes. Returns: Decoded frame. Raises: PayloadTooBig: If decoding the payload exceeds ``max_size``.

(self, frame: Frame, *, max_size: int | None = None)

Source from the content-addressed store, hash-verified

19 """Extension identifier."""
20
21 def decode(self, frame: Frame, *, max_size: int | None = None) -> Frame:
22 """
23 Decode an incoming frame.
24
25 Args:
26 frame: Incoming frame.
27 max_size: Maximum payload size in bytes.
28
29 Returns:
30 Decoded frame.
31
32 Raises:
33 PayloadTooBig: If decoding the payload exceeds ``max_size``.
34
35 """
36 raise NotImplementedError
37
38 def encode(self, frame: Frame) -> Frame:
39 """

Callers 15

parseMethod · 0.45
generate_keyFunction · 0.45
accept_keyFunction · 0.45
__str__Method · 0.45
parseMethod · 0.45
parseMethod · 0.45
dFunction · 0.45
parseMethod · 0.45
parseMethod · 0.45
parse_headersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected