-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
25 lines (21 loc) · 1.35 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
simple-peer is a stream, therefore, i cannot assume that my data will be received in the same chunks that i sent it in
options:
-2 peer connections. 1 for metadata/controls, 1 for data
-switch the stream in and out of a control vs data mode
-parse the stream live looking for control events
-use socket.io-p2p but strip out the fallback stuff
-use https://github.com/tomcartwrightuk/socket.io-p2p-parser in order to know when binary data has completed sending
-"socket.io-p2p-parser": "tomcartwrightuk/socket.io-p2p-parser"
-this may have been merged into the default parser
could use speedomer like webtorrent
Turns out that webrtc has some severe message size limits. This causes a bunch of overhead but simple-peer is aware of the limits
-Can I increase simple-peer's MAX_BUFFERED_AMOUNT to see if it gets faster?
-do I need to use webrtc? Can I tunnel something else like torrenting through 443?
-compile chromium with a bigger buffer of usrsctp
-use this https://github.com/saltyrtc/chunked-dc-js. Idk if this needs to be put in wrtc or app code
https://chromium.googlesource.com/external/webrtc/+/master/api/datachannelinterface.h is the interface that has buffered_amount. Need to see implementers of this to see the buffering in action
cancel button
batch upload
upload progress bar
speed over time graph
activity log with stats - speed, time, who transferred