Skip to content

“LimitedConnectionError on Supposedly ‘non-limited’ Connection to Behind-NAT Peer” #2908

Closed Answered by achingbrain
salehelsayed asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure this code is correct:

const isLimited = (conn.stat?.status === 'LIMITED')

If you consult the API docs for the Connection interface there's no "stat" property.

You can tell if a connection has time/data limits via the .limits property, so instead you can do something like this:

const isLimited = Boolean(connection.limits)

Also in your examples the dialler dials the listener via the relay - it doesn't make a direct connection afterwards (using WebRTC or similar) so yes, it would be expected that the connection has limits applied.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by salehelsayed
Comment options

You must be logged in to vote
3 replies
@achingbrain
Comment options

@salehelsayed
Comment options

@julienmalard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants