This PR adds select_action and deselect_action event listeners to Team sockets. Additionally, an emitter has been created which emits the selected_actions_update event to all sockets in the game_[ID] room.
Includes the following changes/additions:
select_action and deselect_action event listeners attached to authenticated Team sockets.
selected_actions_update event emitted to game room when actions update.
Example Client Emit/Reponse
Client (team 1): socket.emit('select_action', 1)
Server emits to game_[ID] room, where ID is the ID of the Team's game.
Fixes #75
Description
This PR adds
select_action
anddeselect_action
event listeners toTeam
sockets. Additionally, an emitter has been created which emits theselected_actions_update
event to all sockets in thegame_[ID]
room.Includes the following changes/additions:
select_action
anddeselect_action
event listeners attached to authenticatedTeam
sockets.selected_actions_update
event emitted to game room when actions update.Example Client Emit/Reponse
socket.emit('select_action', 1)
game_[ID]
room, where ID is the ID of the Team's game.socket.emit('deselect_action', 1)
game_[ID]
room, where ID is the ID of the Team's game.Known Issues
Code coverage for Socket Team Controller