Possible typo in example

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:

1 Like

Hello!

Thanks for reporting this :slight_smile:, though it’s already been reported.

In the future, these issues can be reported directly in github, by opening an issue:

Regards!

1 Like