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

Method recv

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

Source from the content-addressed store, hash-verified

3981 self.ws.send(data, websocket.ABNF.OPCODE_BINARY)
3982
3983 def recv(self, maxlen):
3984 while len(self.recvbuf) < maxlen:
3985 self.recvbuf += self.ws.recv()
3986
3987 ret = self.recvbuf[:maxlen]
3988 self.recvbuf = self.recvbuf[maxlen:]
3989 return ret
3990
3991 ws = BinWebSocket('localhost', ws_port)
3992 lconn = wire.LightningConnection(ws,

Callers 2

joinMethod · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected