8 lines
293 B
TypeScript
8 lines
293 B
TypeScript
import { io } from "socket.io-client";
|
|
import { API_HOST } from "./util/api";
|
|
|
|
// "undefined" means the URL will be computed from the `window.location` object
|
|
// const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000';
|
|
|
|
export const socket = io(`${API_HOST}`);
|