Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ get_frame
Function
get_frame
experiments/optimization/parse_frames.py:16–19 ·
view source on GitHub ↗
(size)
Source
from the content-addressed store, hash-verified
14
15
16
def
get_frame(size):
17
repeat, remainder = divmod(size, 256 * 1024)
18
payload = repeat * text + text[:remainder]
19
return
Frame(Opcode.TEXT, payload.encode(), True)
20
21
22
def
parse_frame(data, count, mask, extensions):
Callers
nothing calls this directly
Calls
2
Frame
Class · 0.90
encode
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…