So, as all of you know the great and fastly developing iotron builder recently came with socket.io component. So, this is a guide for the nodejs server setup for the component.
Step 1 ,
You simply need two files that are server.js and package.json.
Download them from the link
Server.js
package.json
Step 2
Make a new repository in your github account and upload these server.js and package.json files or simply fork this github repository :
Step 3
We need to host our socket.io nodejs server so, we need a hosting server. Here I choose railway.app because it has no limitations and free hosting with good uptime
Make an account at railway.app and then make a new project. (Note: Use github for signing up as we will deploy the server from our github repo) Then, select deploy from repo option and choose the repository.
Ka Boom ! your server will be live after deployment and obtain the url
Second option
I know the guide may have been hard for beginners so, just click on the below button and deploy your server
Github Repo
You can fork and add pull requests to improve ,
Special Thanks to
Special thanks to Tanishraj Sir for the code and idea to make a guide
Why any body show off socket io blocks usage example? I haven’t found a single example aia searching all communities.
Please, can someone help?
I have deployed the server in Render, don´t know how to use blocks.
can you please make blocks a guide? I’ve deployed my code on render. I’m used postman and Socket IO Client Tool this tool to test my code which is working fine but when i implement in kodular using socket io component there is no logs or emiting data.