What is your hint or solution suggestion?
In the example given:
The user object is now accessible on your socket object as socket.request.user
. For example, now you can add the following:
console.log('user ' + socket.request.user.name + ' connected');
I needed to call username
instead of name
:
console.log('user ' + socket.request.user.username + ' connected');
Challenge: Authentication with Socket.IO
Link to the challenge: