simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

Throw more descriptive error when message size exceeds maximum

Open t-mullen opened this issue 4 years ago • 0 comments

A common issue is pc.send throwing the cryptic TypeError: The expression cannot be converted to return the specified type (or other equally unhelpful errors) when a message exceeds the browser maximum.

We shouldn't chunk messages by default, but it would be nice to detect a message exceeds this maximum and throw a more descriptive error.

See #460, #393, #330, and others.

t-mullen avatar Sep 11 '19 22:09 t-mullen