', () => {
        // emitting to everyone
        //socket.emit('message', 'user connected in the browser')
        socket.emit('join', { room: room })
      })

      // listen to message event
      socket.on('message', (msg) => {
        $('#messages').addClass("list-group-item list-group-item-primary");
        $('#messages').append($('<li>').text(msg));
        //console.log(msg)
      })
    }


    function admin_ROOM() {
      const room = 'home4'.toUpperCase();
      var socket = io('/admin');

  