web/main: fix path for websocket request too

This commit is contained in:
Tulir Asokan 2024-10-20 18:30:48 +03:00
parent 732b38490c
commit ef3776f2ce

View file

@ -24,7 +24,7 @@ import { LoginScreen, VerificationScreen } from "./ui/login"
import { useEventAsState } from "./util/eventdispatcher.ts"
function App() {
const client = useMemo(() => new Client(new WSClient("/_gomuks/websocket")), [])
const client = useMemo(() => new Client(new WSClient("_gomuks/websocket")), [])
const connState = useEventAsState(client.rpc.connect)
const clientState = useEventAsState(client.state)
;((window as unknown) as { client: Client }).client = client