fix: Use server base path for socket connection (#772)

Closes #768
This commit is contained in:
Emmanuel Guyot
2024-05-23 23:59:44 +02:00
committed by GitHub
parent 1b28892cf5
commit 017eee8302
2 changed files with 3 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ io.sails.environment = process.env.NODE_ENV;
const { socket } = io;
socket.path = `${Config.BASE_PATH}/socket.io`;
socket.path = `${Config.SERVER_BASE_PATH}/socket.io`;
socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle
['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].forEach((method) => {