Update server.js
This commit is contained in:
parent
34a5f703ea
commit
6b9684c6e1
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ io.on('connection',socket => {
|
||||||
auth.getSession(socket.request, function(res){
|
auth.getSession(socket.request, function(res){
|
||||||
const getUsername = auth.getUsername(res);
|
const getUsername = auth.getUsername(res);
|
||||||
if (getUsername === -1) {
|
if (getUsername === -1) {
|
||||||
|
console.log('not authenticated',getUsername);
|
||||||
socket.send('error','not authenticated');
|
socket.send('error','not authenticated');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
|
||||||
Reference in a new issue