import io from "socket.io-client" ; import { receivable } from "./socketEvents" ; const socket = io ( "http://localhost:3001" ) ; export default socket ; socket . on ( receivable . connect , ( ) => console . log ( "Connected" ) ) ; socket . on ( receivable . disconnect , ( ) => console . log ( "Disconnected" ) ) ;