Skip to Content

OnReconnect

GitHub 上的源代码 

¥Source on GitHub 

OnReconnect 类型表示在现有边重新连接到其他节点或句柄时调用的回调函数。它接收旧边和新的连接详细信息。

¥The OnReconnect type represents a callback function that is called when an existing edge is reconnected to a different node or handle. It receives the old edge and the new connection details.

type OnReconnect<EdgeType extends EdgeBase = EdgeBase> = ( oldEdge: EdgeType, newConnection: Connection, ) => void;
Parameters:
NameTypeDefault
oldEdgeEdgeType
newConnectionConnection
Returns:
void
Last updated on