Websocket

is it possible to make a server with websocket in the free plan?

Read

5 Likes

No, you can’t do websockets on our hosting.

Part of this is caused by the fact that doing websockets from PHP is a really, really bad idea because PHP as a language is extremely bad at handling many long running connections, which is what you need for running websockets.

If you want to use websockets, you’ll need a programming language that can support them well (like Node.js or Golang) and a hosting platform that can support the use case well. We don’t provide any services that can fill that gap.

However, you can host your website with us and use an external websockets service like Pusher to allow sending messages to your visitors in real time.

That’s not relevant. Using sockets and hosting websockets are different things.

4 Likes