Skip to content

Conversation

@cohosh
Copy link
Owner

@cohosh cohosh commented Apr 22, 2020

No description provided.

cohosh added 2 commits April 16, 2020 12:08
If the proxy succeeds in opening a datachannel to the client, decrease
the poll interval. If they fail, increase the poll interval. This will
cause less reliable/more restrictive proxies to poll less frequently.
this.ui = ui;
this.broker = broker;
this.proxyPairs = [];
this.failures = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using this variable anywhere?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks. Looks like I forgot to remove that.

return this.pollBroker();
}), this.config.defaultBrokerPollInterval);
return this.pollTimeout = setTimeout((() => {
return this.beginWebRTC()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, should this really be beginWebRTC() and not pollBroker()?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be beginWebRTC() since we want to call setTimeout() recusively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants