socket.io fix
parent
ac7f3ef790
commit
cda1baf7c0
|
|
@ -4,4 +4,6 @@ import { API_HOST } from "./util/api";
|
||||||
// "undefined" means the URL will be computed from the `window.location` object
|
// "undefined" means the URL will be computed from the `window.location` object
|
||||||
// const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000';
|
// const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000';
|
||||||
|
|
||||||
export const socket = io(`${API_HOST}`);
|
export const socket = io(`${API_HOST}`, {
|
||||||
|
path: `${API_HOST}/socket.io`,
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue