Fixing typo in comment
This commit is contained in:
parent
f04d1342b5
commit
d064aca525
1 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue