mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-17 14:51:55 +00:00
Fix: apply base path to client and websocket
This commit is contained in:
parent
dadd41cb5c
commit
97e8d4f5c0
6 changed files with 565 additions and 9 deletions
|
|
@ -68,12 +68,12 @@ class SocketAuthority {
|
|||
initialize(Server) {
|
||||
this.Server = Server
|
||||
|
||||
this.io = new SocketIO.Server(this.Server.server, {
|
||||
this.io = (new SocketIO.Server(this.Server.server, {
|
||||
cors: {
|
||||
origin: '*',
|
||||
methods: ["GET", "POST"]
|
||||
}
|
||||
})
|
||||
})).of(global.RouterBasePath || "/")
|
||||
this.io.on('connection', (socket) => {
|
||||
this.clients[socket.id] = {
|
||||
id: socket.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue