dplusic / GameLift-Nodejs-ServerSDK

Unofficial GameLift Server SDK for Node.js
https://www.npmjs.com/package/@dplusic/gamelift-nodejs-serversdk
Apache License 2.0
25 stars 7 forks source link

Feature Request: Support for GameLift Anywhere #2

Open j1mmie opened 1 year ago

j1mmie commented 1 year ago

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.

dplusic commented 1 year ago

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.

j1mmie commented 1 year ago

@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.