Update src/layout/pages/Room.tsx
This commit is contained in:
@@ -31,7 +31,7 @@ const Room = () => {
|
|||||||
|
|
||||||
const {roomId} = useParams();
|
const {roomId} = useParams();
|
||||||
|
|
||||||
const WS_URL = `ws://${process.env.REACT_APP_API_URL}/room/${roomId}`;
|
const WS_URL = `${process.env.REACT_APP_WEBSOCKET_URL}/room/${roomId}`;
|
||||||
|
|
||||||
const [gameState, setGameState] = React.useState<GameState>({
|
const [gameState, setGameState] = React.useState<GameState>({
|
||||||
PlayerName: '',
|
PlayerName: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user