Fixing typo in comment
This commit is contained in:
parent
f04d1342b5
commit
d064aca525
@ -11,7 +11,7 @@ export class IoSocketController{
|
|||||||
constructor(server : http.Server) {
|
constructor(server : http.Server) {
|
||||||
this.Io = socketIO(server);
|
this.Io = socketIO(server);
|
||||||
|
|
||||||
//authentication with token. it will be decodes and stock in socket.
|
// Authentication with token. it will be decoded and stored in the socket.
|
||||||
this.Io.use( (socket: Socket, next) => {
|
this.Io.use( (socket: Socket, next) => {
|
||||||
if (!socket.handshake.query || !socket.handshake.query.token) {
|
if (!socket.handshake.query || !socket.handshake.query.token) {
|
||||||
return next(new Error('Authentication error'));
|
return next(new Error('Authentication error'));
|
||||||
@ -77,4 +77,4 @@ export class IoSocketController{
|
|||||||
return new Error(err);
|
return new Error(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user