MCPcopy Create free account
hub / github.com/websocket-client/websocket-client / recv_line

Function recv_line

websocket/_socket.py:148–155  ·  view source on GitHub ↗
(sock: socket.socket)

Source from the content-addressed store, hash-verified

146
147
148def recv_line(sock: socket.socket) -> bytes:
149 line = []
150 while True:
151 c = recv(sock, 1)
152 line.append(c)
153 if c == b"\n":
154 break
155 return b"".join(line)
156
157
158def send(sock: socket.socket, data: Union[bytes, str]) -> int:

Callers 2

test_recv_lineMethod · 0.90
read_headersFunction · 0.85

Calls 1

recvFunction · 0.70

Tested by 1

test_recv_lineMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…