import { io } from "socket.io-client";

// "undefined" means the URL will be computed from the `window.location` object
const URL =
    window && window.location && window.location.hostname === 'localhost' 
        ? 'http://10.198.9.111/'
        : (window.location.protocol + '//' + window.location.host)

export const socket = io(URL);