PR-988743: Adding support to Prefix url and updating packages.

This commit is contained in:
2023-10-17 18:56:22 +00:00
parent 7cd2cf23b8
commit 8e38ade168
6 changed files with 221 additions and 195 deletions

View File

@ -3,9 +3,10 @@ import PrincipalRoutes from './PrincipalRoutes';
import { config } from '../../../config';
const App = () => {
const { PREFIX_URL } = config;
if(config.ENV === 'development') {
useEffect(() => {
const ws = new WebSocket(`wss://${config.HOST}/ws`);
const ws = new WebSocket(`wss://${config.HOST}${PREFIX_URL}/ws`);
ws.onmessage = (event) => {
if (event.data === 'reload') {
window.location.reload();