func (r *Runner) handleLobbyModifyRequest(ctx context.Context, wg *sync.WaitGroup, sm message.Socket, socketOut chan<- message.Message, lobbyIn chan<- message.Message) {
	switch sm.Type {
	case message.PlayerRemove:
		r.removePlayer(ctx, sm)
	case message.SocketAdd:
		r.addSocket(ctx, wg, sm, socketOut, lobbyIn)
	default:
		r.log.Printf("could not handle modify request: %v", sm)
	}
}
// handleLobbyModifyRequest is used for the lobby to add and remove sockets via HTTP requests.
handleLobbyModifyRequest is used for the lobby to add and remove sockets via HTTP requests.
// handleLobbyModifyRequest is used for the lobby to add and remove sockets via HTTP requests .
func (r *Runner) handleLobbyModifyRequest(ctx context.Context, wg *sync.WaitGroup, sm message.Socket, socketOut chan<- message.Message, lobbyIn chan<- message.Message) {
	switch sm.Type {
	case message.PlayerRemove:
		r.removePlayer(ctx, sm)
	case message.SocketAdd:
		r.addSocket(ctx, wg, sm, socketOut, lobbyIn)
	default:
		r.log.Printf("could not handle modify request: %v", sm)
	}
}
func ( r * Runner ) handleLobbyModifyRequest ( ctx context . Context , wg * sync . WaitGroup , sm message . Socket , socketOut chan <- message . Message , lobbyIn chan <- message . Message ) { switch sm . Type { case message . PlayerRemove : r . removePlayer ( ctx , sm ) case message . SocketAdd : r . addSocket ( ctx , wg , sm , socketOut , lobbyIn ) default : r . log . Printf ( " " , sm ) } }
handleLobbyModifyRequest is used for the lobby to add and remove sockets via HTTP requests.
handleLobbyModifyRequest is used for the lobby to add and remove sockets via HTTP requests .