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

glue with realtime #1

Closed titoasty closed 5 years ago

titoasty commented 5 years ago

Hi,

I'm trying to use your ported sdk with a realtime script so I can test in local. I'm wondering where I can use AcceptPlayerSession? I can't find any function to listen to incoming clients. Could you help me? You seem way more advanced than me :)

dplusic commented 5 years ago

@titoasty

You need to use your own method to connect clients to server instances. GameLift component in AWS SDK is between clients and AWS GameLift. GameLift Server SDK (like this project) connects game servers to AWS GameLift.

I used socket.io for the purpose in this toy project.

This diagram would be helpful.

titoasty commented 5 years ago

Oh wow, this diagram is exactly what I needed! It's crystal clear now, and actually quite easy :) Thanks a lot for your help.