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