-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiments and POCs: adds file handling to the WebSocket client, cle…
…ans WebSocket server code and adds list of the IPs on which the server is listerning
- Loading branch information
1 parent
36c385c
commit bbdec36
Showing
2 changed files
with
305 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
bbdec36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all so very awesome! I wish you hadn't moved away from the project and were still working on it. Do I understand correctly that it can establish a websocket connection between hosts on same network and then tx/rx over that channel too??
Thanks so much for sharing. 👍
bbdec36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! I'm glad somebody found my project useful. There are some plans but now... frozen :D Here are some links where I was playing with this concept more:
https://stackoverflow.com/a/66187214/8264192
https://gist.github.com/robertrypula/f8da8f89819068a97bef4f27d04ad5b7
https://gist.github.com/robertrypula/b813ffe23a9489bae1b677f1608676c8
The plan is to implement "SendYou" website (SNDU). Currently it's just Proof Of Concept:
http://sndu.pl/
Maybe some day :D
bbdec36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little bit more info regarding your question. Server works on my private VPS in OVH provider (regular Ubuntu installation with node). When you connect to server it basically tracks how many clients are active and whatever one client sends into the websocket it's forwarded to any other client connected to the server. Basically it works in broadcast mode. Since server is on VPS it's accessible from the entire world you don't have to be in the same network. The main goal of http://sndu.pl/ is to have ability to quickly share small files without having to create account or use email, WhatsApp, etc. Currently it's limited to 64 KiB but my plan was to implement packets handling to increase the file size.
bbdec36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great - file sharing "party mode". You have a creative mind. Your code is clean and I've really appreciated what you've shared, thank you! :)