mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/main: fix path for websocket request too
This commit is contained in:
parent
732b38490c
commit
ef3776f2ce
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ import { LoginScreen, VerificationScreen } from "./ui/login"
|
||||||
import { useEventAsState } from "./util/eventdispatcher.ts"
|
import { useEventAsState } from "./util/eventdispatcher.ts"
|
||||||
|
|
||||||
function App() {
|
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 connState = useEventAsState(client.rpc.connect)
|
||||||
const clientState = useEventAsState(client.state)
|
const clientState = useEventAsState(client.state)
|
||||||
;((window as unknown) as { client: Client }).client = client
|
;((window as unknown) as { client: Client }).client = client
|
||||||
|
|
Loading…
Add table
Reference in a new issue