Can I use websocket in my website using node.js

How can I use websocket in my Infintyhost for my website using node.js to handle the notification system?

InfinityFree doesn’t support WebSockets. It’s only designed for websites that are accessed by web browsers over HTTP or HTTPS, and there’s a security system that helps to ensure that.

InfinityFree also doesn’t support Node.js. The only server-side language that’s supported is PHP (client-side javascript is fine though).

7 Likes

Can I use an external services that can be integrated with this host to handle websocket?

Likely not, for the same reason. You can technically bypass the security system if you use Cloudflare, but I think the more optimal solution would be to upgrade to premium. Premium lacks the security system, so you can do things you can’t on InfinityFree.

6 Likes

Of course, why not.

Running Node.js on our server or setting up websocket connections to our server is not possible. But you’re free to have code on your website that connects to a websocket service elsewhere, either from a managed service like Pusher or a Node.js app you’re running somewhere else.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.