Created the socket.js
This commit is contained in:
parent
495d18ae09
commit
3f4e89abb9
5
client/src/common/utils/socket.js
Normal file
5
client/src/common/utils/socket.js
Normal file
@ -0,0 +1,5 @@
|
||||
import { io } from 'socket.io-client';
|
||||
|
||||
const URL = process.env.NODE_ENV === "production" ? "https://pmg-api.gnmyt.dev" : "http://localhost:3000";
|
||||
|
||||
export const socket = io(URL);
|
Loading…
x
Reference in New Issue
Block a user