Share players position using Socket.IO
authorgparant <g.parant@thecodingmachine.com>
Sat, 4 Apr 2020 17:25:08 +0000 (19:25 +0200)
committergparant <g.parant@thecodingmachine.com>
Sat, 4 Apr 2020 17:25:08 +0000 (19:25 +0200)
commitfbcb48f9ad29fe1b4eb17ed28ee8a236ae3d3de1
tree1f58ed6bf39dd0c50fa2c91ab3a183b8191c5177
parentf04d1342b5ed668f1cc1d80ab9130e1e4b9fcb6a
Share players position using Socket.IO

 - I stocked information user (id, room and position) in socket client.
 - I created function to send all information every few 10 milliseconds.

Note : when the front will be available, we must check the performance of back server.
back/src/Controller/AuthenticateController.ts
back/src/Controller/IoSocketController.ts
back/src/Enum/EnvironmentVariable.ts
back/src/Model/Websocket/ExSocketInterface.ts