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

Class OpExtension

tests/extensions/utils.py:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class OpExtension:
7 name = "x-op"
8
9 def __init__(self, op=None):
10 self.op = op
11
12 def decode(self, frame, *, max_size=None):
13 return frame # pragma: no cover
14
15 def encode(self, frame):
16 return frame # pragma: no cover
17
18 def __eq__(self, other):
19 return isinstance(other, OpExtension) and self.op == other.op
20
21
22class ClientOpExtensionFactory:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…