timed auto logout and browser close

后端 未结 6 1167
温柔的废话
温柔的废话 2021-01-19 15:29

I\'ve created a very simple multiuser game for learning purposes.

As users log on, each other user gets an update of all currently logged in users.

When a us

6条回答
  •  爱一瞬间的悲伤
    2021-01-19 16:02

    if you used html5 socket connections as your way of connecting to the server, your socket server script would know when a subscriber disconnects. this would also allow you to push data to all the clients in real time without long polling. the only problem is I don't know what the support of html5 sockets is at the moment. I have done something similar using Flash, which also supports socket connections.

提交回复
热议问题