function sendPokemon(room) {
        let obj
        pokemons.forEach(item => {
            if (item.room === room) {
                obj = item
            }
        })

        io.sockets.in(room).emit('pokemon', obj)
    }
// ----------------------------------------------------------------------------------------------- Send current pokemon to new joined clients
Send current pokemon to new joined clients
Send current pokemon to new joined clients
function sendPokemon(room) {
        let obj
        pokemons.forEach(item => {
            if (item.room === room) {
                obj = item
            }
        })
        io.sockets.in(room).emit('pokemon', obj)
    }
function sendPokemon ( room ) { let obj pokemons . forEach ( item => { if ( item . room === room ) { obj = item } } ) io . sockets . in ( room ) . emit ( 'pokemon' , obj ) }
Send current pokemon to new joined clients
Send current pokemon to new joined clients