Fixing typo in comment

This commit is contained in:
David Négrier 2020-04-04 22:35:20 +02:00 committed by GitHub
parent f04d1342b5
commit d064aca525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ export class IoSocketController{
constructor(server : http.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) => {
if (!socket.handshake.query || !socket.handshake.query.token) {
return next(new Error('Authentication error'));
@ -77,4 +77,4 @@ export class IoSocketController{
return new Error(err);
}
}
}
}