강동현
Builds for 1 pipeline passed in 8 minutes 11 seconds

현재 페이지의 호스트를 사용하여 소켓 접속

import React from 'react';
import { io } from 'socket.io-client';
import React from "react";
import { io } from "socket.io-client";
export const socket = io('http://localhost:3000/');
export const socket = io(`http://${window.location.hostname}:3000/`);
const SocketContext = React.createContext(socket);
export const SocketProvider = SocketContext.Provider;
......