Adds socket.io path

This commit is contained in:
psychedelicious
2022-10-20 23:03:48 +08:00
parent e035397dcf
commit d3b0c54c14
3 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ export const socketioMiddleware = () => {
const socketio = io(origin, {
timeout: 60000,
path: window.location.pathname + 'socket.io',
});
let areListenersSet = false;