mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-13 06:05:34 +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…
Reference in New Issue
Block a user