dynamic websockets url resolve
This commit is contained in:
parent
6fc628aee3
commit
8e99d4fa14
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { Message } from "./Message";
|
|||
import { Client, Stomp } from "@stomp/stompjs";
|
||||
import { MessageType } from "./types";
|
||||
import { renderToStaticMarkup } from 'react-dom/server';
|
||||
const domain = "localhost"
|
||||
const domain = window.location.hostname
|
||||
const port = "8080"
|
||||
const connectionAddress = `ws://${domain}:${port}/ws`
|
||||
const ChatWrapper = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue