Authenticates an upgrade request. The returned value is stored as socket.data.auth; return null, undefined or false (or throw) to refuse the connection with 401.
socket.data.auth
null
undefined
false
Authenticates an upgrade request. The returned value is stored as
socket.data.auth; returnnull,undefinedorfalse(or throw) to refuse the connection with 401.