mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +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