OnBeforeReconnect
The OnBeforeReconnect type is a callback function that is called before an edge is reconnected. It can prevent reconnection or modify the connection by returning false or a modified connection.
type OnBeforeReconnect<EdgeType extends EdgeBase = EdgeBase> = (
oldEdge: EdgeType,
newConnection: Connection,
) => Promise<boolean | Connection>;| Name | Type | Default |
|---|---|---|
newEdge | EdgeType | |
oldEdge | EdgeType |
false | void | EdgeType | nullLast updated on