connect

connect -- Notification for connection with a peer

DESCRIPTION

The connect notification informs whenever the node is connected to a peer.

NOTIFICATION PAYLOAD

  • id (pubkey): The id of the peer which sent the custom message

  • direction (string) (one of "in", "out"): Direction of the connection

  • address (object): Address information (mainly useful if direction is out):

    • type (string) (one of "local socket", "ipv4", "ipv6", "torv2", "torv3", "websocket"): Type of connection (torv2/torv3 only if direction is out)

    If type is "local socket":

    • socket (string): Socket filename

    If type is "ipv4", "ipv6", "torv2" or "torv3":

    • address (string): Address in expected format for type
    • port (u16): Port number

Core Lightning is Blockstream's open-source implementation of the Lightning Network optimised for performance. It is highly customizable through modular expandability.

© 2026 Core Lightning, a Blockstream project.
All rights reserved.

X Twitter Logo Streamline Icon: https://streamlinehq.com

X

The official Core Lightning X(Twitter) handle to follow project updates and announcements.

Github Logo 2 Streamline Icon: https://streamlinehq.com

Github

Github repository for source code, issues, and contributions. Visit our project here to explore or contibute.

Telegram

Community-driven telegram group where most of the node operators hang out. Go to https://t.me/lightningd to join.

Discord

Community-driven discord server where the devs flock together. Go to https://discord.gg/V6ay9yNhBQ to join.