Coder Social home page Coder Social logo

bellisario / node-snapdrop Goto Github PK

View Code? Open in Web Editor NEW
104.0 4.0 39.0 1.53 MB

Node.js version of the original Snapdrop

Home Page: https://node-snapdrop.onrender.com

License: GNU General Public License v3.0

JavaScript 64.76% HTML 19.04% CSS 16.00% Dockerfile 0.19%
nodejs pwa snapdrop webrtc

node-snapdrop's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-snapdrop's Issues

Cross-device discovery doesn't work

I have the node server running on my Macbook pro. If I open it in a browser on the Macbook and on a handheld device by using the ip (in my case 192.168.0.258:3000) it works on both but they don't discover each other. If I open it in multiple tabs on either device, the different instances on one device discover each other, though.

ERR_TOO_MANY_REDIRECTS

The first boot worked just fine.

When I restart the program I always geht the Error message:
"ERR_TOO_MANY_REDIRECTS", whenever I try to access the webpage.

I run it on a raspberry pi 3B+

Fix code scanning alert - Missing rate limiting

Tracking issue for:

Should be introduced ASAP a fix for this vulnerability since an user could use DDoS attacks to shut down the entire application just by requesting index.html.

I think I'll fix this using express-rate-limit.


This is not a really high severity vulnerability since Heroku hosting has an internal DDoS attack protection, but this is really bad instead for users hosting their own node-snapdrop server.

"Connection lost"

Hi.

First of all thanks for your work to run Snapdrop with Node.
I got it installed but when I open my server on the internet it loads the page but it can't connect.
At the bottom it says "Connection lost" all the time. After the announced 5 seconds it disappears briefly and then comes back.

How can I fix this?

Heroku Free Plan Shutdown (hosting provider change)

On November 28, node-snapdrop public server will stop working because of Heroku Free Plan Shutdown.
Since I cannot spend money to keep running this server my own, it will be shutdown because I'll not have "free dynos" anymore.

I'm asking all the Snapdrop and node-snapdrop community to help this open-source project keep running by proposing new free hosting solutions that are compatible with technologies used here.

Remember also node-snapdrop have to keep WebSocket connections for clients discover, so for example Serverless Functions (Vercel, etc...) won't work properly.


Starting November 28, 2022, we plan to stop offering free product plans and plan to start shutting down free dynos and data services.
- Heroku Next Chapter

.exe and .dmg server

Thanks for the great work. It probably works well, but I never got around to trying it ๐Ÿฅบ

Could you implement the server in the form of .exe and .dmg files, as for example done in VLC Remote? This will allow simple beginners to use this wonderful service without unnecessary difficulties, simply by adding them to the system startup. I will be very grateful ๐Ÿ™

[Bug] "DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable"

Hello,

As soon as I try to upload a file at node-snapdrop.onrender.com, the following error is thrown :

network.js:333 DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable
_onError @ network.js:333
(anonymous) @ network.js:289
Promise.catch (async)
onServerMessage @ network.js:289
_onMessage @ network.js:378
(anonymous) @ network.js:367
fire @ network.js:509
_onMessage @ network.js:39
ws.onmessage @ network.js:19

Thanks

Sending Messages Broken

Testing my own and yours and I can't get messages to work. Tapping, right clicking, etc all fail to do anything through this version. The original snapdrop works fine. I can't see what would be going wrong myself that is different from the original.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.