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

Method __init__

tests/test_connection.py:3995–3998  ·  view source on GitHub ↗
(self, hostname, port)

Source from the content-addressed store, hash-verified

3993 # Adapter to turn websocket into a stream "connection"
3994 class BinWebSocket(object):
3995 def __init__(self, hostname, port):
3996 self.ws = websocket.WebSocket()
3997 self.ws.connect("ws://" + hostname + ":" + str(port))
3998 self.recvbuf = bytes()
3999
4000 def send(self, data):
4001 self.ws.send(data, websocket.ABNF.OPCODE_BINARY)

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected