retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
10.17k stars 653 forks source link

Can a socket be a "link"? #469

Closed ziga-miklic closed 4 years ago

ziga-miklic commented 4 years ago

Hello,

is there a way to create a socket that acts as a link, meaning it does not care if the connected socket is an input or output?

Example: linking switches together by ports. In this case no port is just the input or output, but they are all both.

Thank you, Žiga

creadicted commented 4 years ago

@ziga-miklic if I have the API correct in mind you need to write an extension to allow this.

ziga-miklic commented 4 years ago

@creadicted I've searched around but did not find any good examples. Do you maybe know some that might help me in creating the extension? Thank you!