I’m trying to deploy a very simple Websocket server for a Next.js client that I have hosted on Vercel.
All works on my local machine, but I cannot for the life of me get to connect to the Socket.IO server once I deploy it on Fly.
My only thoughts about it is that it could be the fly.toml file, since I’m not too familiar with how to configure that.
This is my current config (only the relevant part of the toml):
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
[[services.ports]]
handlers = ["http"]
port = "80"
[[services.ports]]
handlers = ["tls", "http"]
port = "443"
[[services.tcp_checks]]
interval = 10000
timeout = 2000
I double checked my logs, sometimes I also get this for whatever reason:
[error] Health check on port 8080 has failed. Your app is not responding properly. Services exposed on ports [80, 443] will have intermittent failures until the health check passes.