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

Method encode

tests/test_frames.py:176–180  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

174 class Rot13:
175 @staticmethod
176 def encode(frame):
177 assert frame.opcode == OP_TEXT
178 text = frame.data.decode()
179 data = codecs.encode(text, "rot13").encode()
180 return dataclasses.replace(frame, data=data)
181
182 # This extensions is symmetrical.
183 @staticmethod

Callers 15

serve_htmlFunction · 0.45
get_frameFunction · 0.45
broadcast_messagesFunction · 0.45
test_proxy.pyFile · 0.45
run_mainMethod · 0.45
test_send_requestMethod · 0.45

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected