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

Class Rsv2Extension

tests/extensions/utils.py:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84class Rsv2Extension:
85 name = "x-rsv2"
86
87 def decode(self, frame, *, max_size=None):
88 assert frame.rsv2
89 return dataclasses.replace(frame, rsv2=False)
90
91 def encode(self, frame):
92 assert not frame.rsv2
93 return dataclasses.replace(frame, rsv2=True)
94
95 def __eq__(self, other):
96 return isinstance(other, Rsv2Extension)
97
98
99class ClientRsv2ExtensionFactory:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…