Advanced Node/Express - emitting issue - not showing current users

Hi all,

I’m having some trouble with getting the below function (in the client.js file) to log anything to the console.

  socket.on('user count', function (data) {
    console.log(data);
  });

I have copied and pasted the code from the solution (here) and still not working.

Interestingly - all the tests still pass.

Any ideas on what could be the cause of this not running?

Thanks heaps,

Joe

It is the browser code, are you looking in the browser console?

1 Like

No! Thanks lasjorg - didn’t realise there was a difference but that makes perfect sense.