#Make a node aware that its handle connection was removed

1 messages · Page 1 of 1 (latest)

graceful hemlock
#

How can I make my node aware that its handle connection was removed? There's onConnect on the Handle, but I haven't found a way to make it know that the connection was removed.

My use case is that a specific kind of node can only have a single connection (edge) to another node, so I want to make isConnectable true/false depending on whether there is already a connection or not

#

Or should this be handled in "isValidConnection" maybe?