PR-394587: Adding support to custom host.

This commit is contained in:
2023-10-07 04:42:03 +00:00
parent 34236b7738
commit 47314b8e5b
6 changed files with 10 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import { config } from '../../../config';
const App = () => {
if(config.ENV === 'development') {
useEffect(() => {
const ws = new WebSocket('wss://nmr4jbx8-3000.use.devtunnels.ms/ws');
const ws = new WebSocket(`wss://${config.HOST}/ws`);
ws.onmessage = (event) => {
if (event.data === 'reload') {
window.location.reload();