mirror of
https://github.com/aleleba/create-react-go-ssr.git
synced 2025-07-27 01:58:13 -06:00
PR-394587: Adding support to custom host.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user