GameLift-Nodejs-ServerSDK icon indicating copy to clipboard operation
GameLift-Nodejs-ServerSDK copied to clipboard

Feature Request: Support for GameLift Anywhere

Open j1mmie opened this issue 2 years ago • 2 comments

GameLift Anywhere allows you to provision any machine (like a local dev machine) to be a part of a fleet. More info here: https://aws.amazon.com/blogs/aws/introducing-amazon-gamelift-anywhere-run-your-game-servers-on-your-own-infrastructure/

The main change required for GameLift-Nodejs-ServerSDK to be compatible with GameLift Anywhere would be the addition of a ServerParameters argument in InitSdk. More info via the GameLift Docs:

To initialize a server process on a Amazon GameLift Anywhere compute resource, call InitSdk() with the following ServerParameters:

  • The URL of the websocket used to connect to your game server.
  • The ID of the process used to host your game server.
  • The ID of the compute hosting your game server processes.
  • The ID of the GameLift fleet containing your Amazon GameLift Anywhere compute.
  • The authorization token generated by the Amazon GameLift operation GetComputeAuthToken.

I would be happy to implement this if a PR would be accepted.

j1mmie avatar Apr 13 '23 22:04 j1mmie

Please feel free to submit a PR. I will gladly review it.

By the way, I just remembered that I forgot to respond to the comment, and it was from you! I'm sorry that I missed it, and I hope that the trouble has been resolved promptly.

dplusic avatar Apr 13 '23 23:04 dplusic

@dplusic Ah I remember finding a solution almost immediately after posting that comment :) So no worries at all. I'll submit a PR if I can get to it.

j1mmie avatar Apr 14 '23 00:04 j1mmie