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

Method recv

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

Source from the content-addressed store, hash-verified

3952 self.ws.send(data, websocket.ABNF.OPCODE_BINARY)
3953
3954 def recv(self, maxlen):
3955 while len(self.recvbuf) < maxlen:
3956 self.recvbuf += self.ws.recv()
3957
3958 ret = self.recvbuf[:maxlen]
3959 self.recvbuf = self.recvbuf[maxlen:]
3960 return ret
3961
3962 ws = BinWebSocket('localhost', ws_port)
3963 lconn = wire.LightningConnection(ws,

Callers 6

recvMethod · 0.45
test_tracing_socketFunction · 0.45
joinMethod · 0.45
start_writerFunction · 0.45
htlc_accepted_handlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected