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.
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
andonClose
onJoin
will allow the SignalHub instance to inject the Hyperproxy node into the channel whileonClose
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.