Added a new view for showing the associations user_id -> room_id instead of session_id -> room_id
Implemented the logic for marking a video as playing_done once ended
Exposing a method for getting the current playlist video
Implemented the new logic for managing session_id on rooms instead of user_id
Style improvement on player loading div
When a video ends, notify the JSON endpoint of its termination
Preventing the server to terminate when an error occurs on disconnect without any message
Executing initRoom only when the websocket server provides a websocket ID to the client, otherwise, in case the AJAX call to enter_room.php terminates before the websocket handshake completes, we may end up in an inconsistent state with websocket messages sent without a websocket ID
Fixed logout not working