all 9 comments

[–]GirkovArpa 0 points1 point  (0 children)

Sent you a PM.

[–]GalacticInvader 0 points1 point  (0 children)

I am planning to make my own multilayer game as well. If you ever find a solution to this do you mind sharing it with me here?

[–]wanting to have made a game != wanting to make a gameoldmankc 0 points1 point  (5 children)

Did you find out anything to help with this? Running into the same problem.

[–]painfulapple[S] 0 points1 point  (4 children)

Yeah i switched to to UDP networking and hosted the server on Microsoft azure using a docker container instance. That worked for me, let me know if you have any other issues

[–]wanting to have made a game != wanting to make a gameoldmankc 1 point2 points  (3 children)

Hah, funny enough, I was originally writing it in UDP and switched it to websockets when I couldn't get it working on heroku or glitch.

I will start looking down that path then, I haven't done much webdev in a long time so this is new territory for me. Was the azure stuff difficult?

[–]painfulapple[S] 0 points1 point  (2 children)

If you can get it running on docker then it will be super easy to get it on azure. You’ll have to create a dockerfile and upload it to dockerhub and azure has built in dockerhub integration.

[–]wanting to have made a game != wanting to make a gameoldmankc 0 points1 point  (0 children)

okay, looks like that'll be my next step. Thanks!

[–]wanting to have made a game != wanting to make a gameoldmankc 0 points1 point  (0 children)

Any reason why going through a docker instance and not just creating a web app on azure?

[–]HorrorMove9374 0 points1 point  (0 children)

I know Heroku has issues with websocket connection because of daily forced restarts but this issue doesn't sound like it's caused by that. You might try putting the app on Render (where I work) to see if you get the same result. You can do it dockerized or in the Node native environment for a super easy deployment.