feross / feross/simple-peer

Throw more descriptive error when message size exceeds maximum

Open
#546 0 comments 2 reactions 1 assignee Claimed by @t-mullen View on GitHub
feature request
Dominant language
JavaScript
Stars
7.8k
Forks
983
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.