Eric Xanderson

Results 44 comments of Eric Xanderson

Docs update for webworkers

Perhaps header tags like: ``` Installation [0.15+] ``` Vuejs docs tend to have one source, and updated headings for the API: https://vuejs.org/v2/api/#warnHandler

I looked around for some prior art, and this appears to be the only wrapper around simple peer that overcomes the issue: https://github.com/disarticulate/simple-peer-files The simple-peer-files/src/Meta.ts implements a similar protocol to...

my webrtc buffer protocol was to: 1. hash the data 2. chunk the data, then calculate the hashes 3. wrap in a protobuf with packet # and metadata, particularly the...

If you use any array, you would need to chunk the transaction to ~16KB to maximize transmission, according to some testing I've seen. Past 64KB, certain browsers silently fail to...

I created a monkey patch, hack, into SimplePeer here: https://github.com/disarticulate/y-webrtc/ I did the following: 1. Extended SimplePeer's class as SimplePeerExtended.js 2. Overwrite import in y-webrtc.js to use th eextneded version...

> @disarticulate Is this patch the latest version you've been applying? I see errors when clients disconnect. Those seem to go away, if I include `super.destroy()` from you main branch....

The boring answer is the encoder selected is encoding 64 bit integers. The arbitrary answer is it made the header simple to decode and encode. Someone could rightsize it all,...

Yes. When I review y-webrtc for the close, (this.peer.on('close', () =>...) the last line is announceSignalingInfo(room) which triggerS: ``` const announceSignalingInfo = room => { signalingConns.forEach(conn => { // only...

alright, what I'm seeing: ``` this.peer.on('close', () => { this.connected = false this.closed = true if (room.webrtcConns.has(this.remotePeerId)) { room.webrtcConns.delete(this.remotePeerId) room.provider.emit('peers', [{ removed: [this.remotePeerId], added: [], webrtcPeers: Array.from(room.webrtcConns.keys()), bcPeers: Array.from(room.bcConns) }])...