Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upQuestion concerning WS (not issue) #1024
Comments
This comment has been minimized.
This comment has been minimized.
|
The ws is not used for the bittorrent protocol, webrtc is. It is used only for the tracking. |
This comment has been minimized.
This comment has been minimized.
|
I thought ws was built on webrtc.... I have a lot to learn about this... |
This comment has been minimized.
This comment has been minimized.
|
The You can look at this file to see how the webrtc connections are created during communication with the tracker: https://github.com/feross/bittorrent-tracker/blob/master/lib/client/websocket-tracker.js |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
I've been looking over the code and I realized that you just reused the bittorent protocol (wire) with ws.
However, I can't seem to understand how you implemented the ws server and client?
Did you use websocket-stream package? If you could point me to the code that explicitly preps the conditions (as I don't see it inside Peer or webconn) that would really help! Or just a quick paragraph explanation.
Also seems like you follow BEP 19 for website based DL. So It's all rather confusing as how to understand where to start.