Add base path to socket.io connections on client and server

This commit is contained in:
mikiher 2024-10-15 05:50:23 +03:00
parent 42616b59de
commit 2d7b63b4cf
2 changed files with 4 additions and 2 deletions

View file

@ -103,7 +103,8 @@ class SocketAuthority {
cors: {
origin: '*',
methods: ['GET', 'POST']
}
},
path: `${global.RouterBasePath}/socket.io`
})
this.io.on('connection', (socket) => {