diff --git a/src/signals/request.ts b/src/signals/request.ts index d7133a32..69869b1f 100644 --- a/src/signals/request.ts +++ b/src/signals/request.ts @@ -48,7 +48,7 @@ export const endpoint = () => export const secret = () => endpoint()?.secret export const wsEndpointURL = () => - new URL(endpoint()?.url ?? '').origin.replace('http', 'ws') + new URL(endpoint()?.url ?? '').href.replace('http', 'ws') export const useWsRequest = ( path: string,