Skip to content

Commit f2bf12a

Browse files
committed
fix(server) auth
1 parent 67d7a3c commit f2bf12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ module.exports = (socket, options) => {
3636
else
3737
throw Error('server or socket should be passed in options!');
3838

39+
const auth = options.auth;
3940
check(auth);
4041

4142
Socket
4243
.of(prefix)
4344
.on('connection', (socket) => {
44-
const auth = options.auth;
4545
const connection = connectWraped(options, socket);
4646

4747
if (!auth)

0 commit comments

Comments
 (0)