workadventure/back/src/Model/Websocket
David Négrier 125a4d11af Refactored and optimized messages
Now, when a user moves, only his/her position is sent back to the other users. The position of all users is not sent each time.

The messages sent to the browser are now:

- the list of all users as a return to the join_room event (you can send responses to events in socket.io)
- a "join_room" event sent when a new user joins the room
- a "user_moved" event when a user moved
- a "user_left" event when a user left the room

The GameScene tracks all these events and reacts accordingly.

Also, I made a number of refactoring in the classes and removed the GameSceneInterface that was useless (it was implemented by the LogincScene for no reason at all)
2020-05-19 19:11:12 +02:00
..
ExSocketInterface.ts Completely getting rid of "userid" 2020-05-14 23:20:43 +02:00
ExtRooms.ts Getting rid of roomId in Message class (this is not needed since all messages sent are for the room we are currently in) 2020-05-16 00:19:27 +02:00
ExtRoomsInterface.ts Refactor to create interface rooms. 2020-04-05 15:51:47 +02:00
Identificable.ts Completely getting rid of "userid" 2020-05-14 23:20:43 +02:00
MessageUserJoined.ts Refactored and optimized messages 2020-05-19 19:11:12 +02:00
MessageUserMoved.ts Refactored and optimized messages 2020-05-19 19:11:12 +02:00
MessageUserPosition.ts Removing broken import 2020-05-16 15:51:00 +02:00
PointInterface.ts Refactored and optimized messages 2020-05-19 19:11:12 +02:00
SetPlayerDetailsMessage.ts Sending player details (name + character selected) on connection 2020-05-15 22:49:50 +02:00