Mark Duppenthaler commited on
Commit
e72e68d
1 Parent(s): 2dad3c7

remove changes

Browse files
streaming-react-app/src/SocketWrapper.tsx CHANGED
@@ -11,9 +11,8 @@ import {getURLParams} from './URLParams';
11
 
12
  // The time to wait before showing a "disconnected" screen upon initial app load
13
  const INITIAL_DISCONNECT_SCREEN_DELAY = 2000;
14
- // const SERVER_URL_DEFAULT = `${window.location.protocol === "https:" ? "wss" : "ws"
15
- // }://${window.location.host}`;
16
- const SERVER_URL_DEFAULT = 'http://localhost:8000/'
17
 
18
  export default function SocketWrapper({children}) {
19
  const [socket, setSocket] = useState<Socket | null>(null);
 
11
 
12
  // The time to wait before showing a "disconnected" screen upon initial app load
13
  const INITIAL_DISCONNECT_SCREEN_DELAY = 2000;
14
+ const SERVER_URL_DEFAULT = `${window.location.protocol === "https:" ? "wss" : "ws"
15
+ }://${window.location.host}`;
 
16
 
17
  export default function SocketWrapper({children}) {
18
  const [socket, setSocket] = useState<Socket | null>(null);