feat(assist): upgrade changes
This commit is contained in:
parent
47cde816a4
commit
ffdb16d899
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ module.exports = {
|
|||
wsRouter,
|
||||
start: (server, prefix) => {
|
||||
createSocketIOServer(server, prefix);
|
||||
// io.use(async (socket, next) => await authorizer.check(socket, next));
|
||||
io.use(async (socket, next) => await authorizer.check(socket, next));
|
||||
io.on('connection', async (socket) => {
|
||||
socket.on(EVENTS_DEFINITION.listen.ERROR, err => errorHandler(EVENTS_DEFINITION.listen.ERROR, err));
|
||||
debug && console.log(`WS started:${socket.id}, Query:${JSON.stringify(socket.handshake.query)}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue