In which file is the connection function available where connection of two nodes takes place

In which file is the connection function available where connection of two nodes takes place @Jon

Hey @121810306029_PRIYANK,
what are you trying to achive? If we are talking about the n8n’s editor-ui you should take a look at NodeView.vue where you find methods like connectTwoNodes. Under the hood n8n is using jsplumb for nodes and connections.

I wanted to create a validation before connecting so trying to find in which file the connections are being made

Ok cool, let me know if connectTwoNodes is the solution you were looking for.

:thinking: What are you trying to validate?