Follow the steps to stream your webcam with Express and socket io
Link for Socket IO Content Delivery Network which is hosted by cloudflare Link
Open your terminal and git clone with the following command
git clone https://github.com/narenltk/webcam_.git
Since I have given all the dependencies in the package.json all you need to do is give the following command
npm install
This command actually installs all the dependencies given in the package.json file.
Once your done with all the steps given above all you to do is just fire up the server, with the following command and check your localhost
npm start
or
node server.js
or
nodemon server.js
checkout "http://localhost:3030"
I have used the port 3030 and you can change the port to any number you like.
You can also host the application by creating your own SSL certificate and the link for code for that is here Link
Or in any case your lazy like me you can also host the application using ngrok to host in a public server and with the following command
Linux users command:
./ngrok http 3030
windows users command:
ngrok http 3030