mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 07:24:10 +08:00
chore: websocket connection string queries type definition
This commit is contained in:
parent
c6eceb3dcd
commit
3e4078d99e
@ -52,7 +52,7 @@ export const wsEndpointURL = () =>
|
||||
|
||||
export const useWsRequest = <T>(
|
||||
path: string,
|
||||
queries: Record<string, unknown> = {},
|
||||
queries: Record<string, string> = {},
|
||||
) => {
|
||||
const queryParams = new URLSearchParams(queries)
|
||||
queryParams.set('token', secret() ?? '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user