Hey, I’m new around here.
I’m using Defold to create a test game using Nakama as a backend for a real-time client authoritative game. Everything works as it should when testing locally within the Defold IDE, but when bundled to HTML5 I get this error:
WebSocket connection to 'ws://18.104.22.168/ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2OWI2ZGMxMC0zODE3LTQ3ZTItOWFlMS1kYTkzODJiZjY2NjQiLCJ1c24iOiJudkdCVHVKdWpsIiwiZXhwIjoxNjE0NzY4MzIzfQ.tSGf0HKb59dMgYjIHF7GnVPrjmB3vadXN3SaDIEbles' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I’m running the Nakama instance from a DigitalOcean Nakama droplet. I’ve changed the config file Nakama uses to be ready for production, but that doesn’t seem to make any difference. Are there additional steps to configure a websocket connection when the client connects from a web browser?