fixed socket issue
parent
26700d5be1
commit
7da4c51a89
|
|
@ -6,5 +6,5 @@ import { API_HOST } from "./util/api";
|
|||
|
||||
const url = new URL(API_HOST);
|
||||
export const socket = io(`${url.host}`, {
|
||||
path: `${url.pathname.replace(/^\/+/, "")}/socket.io`,
|
||||
path: `${url.pathname}/socket.io`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue