LIGHTNING-NOTIFICATION-CONNECT(7)
π connect β the "omg we're connected" notification π
Hey bestie, quick intro before we get into it: this is lightning-notification-connect(7), one of the Core Lightning notification pages. It's short, it's sweet, it's giving "little note that pops up and says hiiii" π«Ά
πΈ NAME πΈ
connect β the notification you get when your node connects to a peer. That's it, that's the whole vibe. β¨
π¦ DESCRIPTION π¦
okay so. The connect notification fires off whenever the node gets connected to a peer. No cap, that's literally the whole job β it's the "we linked up" ping, the friendship bracelet of the Lightning Network π
Every time a peer connection happens, this notification informs you. Periodt.
π NOTIFICATION PAYLOAD π
This is the good part, the main character energy, the payload itself. Here's everything it hands you:
id(pubkey) β the id of the peer which sent the custom messagedirection(string) (one of"in","out") β which way the connection is going, in or out, iykykaddress(object) β address info, and lowkey this is mainly useful ifdirectionisout:type(string) (one of"local socket","ipv4","ipv6","torv2","torv3","websocket") β the type of connection. Heads up:torv2/torv3only show up ifdirectionisoutπ
π§ the address object, broken down by type π§
Because what's inside address depends on what type you got. Vibe check time:
If type is "local socket":
socket(string) β the socket filename π
If type is "ipv4", "ipv6", "torv2" or "torv3":
address(string) β the address, in the expected format for that typeport(u16) β the port number π’
ngl, that's all the fields the page gives you β no extra guesses from me, bestie. What you see is what you get π
π« a cute little sign-off π«
That's the whole page, fr fr β short and iconic, just like you. This one's from Core Lightning v26.06.9, so keep that in mind when you're out here reading notifications like the Unix icon you are ππ go slay your peer connections, bestie! π¦β¨
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms