Stuck on connecting... on multiplayer #1156
Closed
kumarajith
started this conversation in
General
Replies: 1 comment
-
Not sure what the issue was, but I added a subdomain and used that for the game server like api.mysite.com and it worked. Could have been an issue with feathers and the game server websockets on the same domain? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Everything works fine in my local environment. I'm trying to set up the game server and a feathers server (react build for front end) on an instance with SSL. I have nginx reverse proxy setup to redirect to 8000 when I get a /api (only the boardgameio server). and to redirect to the backend for everything else. Everything seems to be working. I am getting the following output on the game server
On creating a Client and redirecting to the client component, I'm getting connecting... and it doesn't throw any errors or proceed further.
Client creation:
Client({ game: Game, board: Game, multiplayer: SocketIO({ server: 'https://mysite.com/api'}), debug: false})
Server code
Nginx config
I'm kind of stuck at this point and I am not sure how to proceed. Please let me know if I'm missing something. Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions