MCPcopy Create free account
hub / github.com/ElementsProject/lightning / recv

Method recv

tests/test_connection.py:4003–4009  ·  view source on GitHub ↗
(self, maxlen)

Source from the content-addressed store, hash-verified

4001 self.ws.send(data, websocket.ABNF.OPCODE_BINARY)
4002
4003 def recv(self, maxlen):
4004 while len(self.recvbuf) < maxlen:
4005 self.recvbuf += self.ws.recv()
4006
4007 ret = self.recvbuf[:maxlen]
4008 self.recvbuf = self.recvbuf[maxlen:]
4009 return ret
4010
4011 ws = BinWebSocket('localhost', ws_port)
4012 lconn = wire.LightningConnection(ws,

Callers 2

recvMethod · 0.45
serveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected