I'm using Socket.IO in Node.js, and need a system to authenticate users connecting through websockets. The both key questions are, how to:
1) get the information to the server about who is connecting via Socket.IO
2) authenticate who they say they are
Basically, my question is exactly similar to this question, but as nearly 4 years have past since the question was answered, I wanted to make sure if this is still best - practice. Another answer on the question posted at the beginning of this year is about using tokens, so what would be the way to go for a new application?