mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01:00
Add base path to socket.io connections on client and server
This commit is contained in:
parent
42616b59de
commit
2d7b63b4cf
@ -357,7 +357,8 @@ export default {
|
||||
teardown: false,
|
||||
transports: ['websocket'],
|
||||
upgrade: false,
|
||||
reconnection: true
|
||||
reconnection: true,
|
||||
path: `${this.$config.routerBasePath}/socket.io`
|
||||
})
|
||||
this.$root.socket = this.socket
|
||||
console.log('Socket initialized')
|
||||
|
@ -103,7 +103,8 @@ class SocketAuthority {
|
||||
cors: {
|
||||
origin: '*',
|
||||
methods: ['GET', 'POST']
|
||||
}
|
||||
},
|
||||
path: `${global.RouterBasePath}/socket.io`
|
||||
})
|
||||
|
||||
this.io.on('connection', (socket) => {
|
||||
|
Loading…
Reference in New Issue
Block a user