goonism / hyperproxy

Hyperproxy aims to establish connection from WebRTC nodes to TCP/UDP DAT nodes
https://goonism.github.io/hyperproxy
MIT License
74 stars 5 forks source link

Create our own connection protocol on top of signalhub #21

Closed ColdSauce closed 6 years ago

ColdSauce commented 6 years ago

We need to have our own protocol for establishing a connection since we need to inject the Hyperproxy node into each session. We need to be able to take care of the following events:

onJoin and onClose

onJoin will allow the SignalHub instance to inject the Hyperproxy node into the channel while onClose will allow the instance to remove the Hyperproxy node from the channel. That way, every channel running on our SignalHub will always have at least one Hyperproxy node running on it.

ColdSauce commented 6 years ago

Duplicate of #22