pshaughn / okayworld

backend for play.okayideas.com
0 stars 1 forks source link

multiple logins from same user #10

Closed pshaughn closed 6 years ago

pshaughn commented 6 years ago

there are 3 cases when a user tries to connect:

the path of least resistance for API calls is not to worry about multiple connections:

while there is no a priori reason playsets must to limit controllers to one per user, it has advantages:

A possible approach:

pshaughn commented 6 years ago

client code flow is simpler if "bare pong with no game state" precedes the game state even if the connection is going straight to live (also if serializing and sending the initial game state is a bit expensive, sending the pong first is more accurate)

pshaughn commented 6 years ago

seems to be working, although scripted rapid-fire stress-tests on it might be a good idea later