diff --git a/lib/index.ts b/lib/index.ts index 569871fa1..9ae14fb50 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -67,7 +67,7 @@ function lookup( io = cache[id]; } if (parsed.query && !opts.query) { - opts.query = parsed.query; + opts.query = parsed.queryKey; } return io.socket(parsed.path, opts); } diff --git a/lib/manager.ts b/lib/manager.ts index de5f01012..33ed63227 100644 --- a/lib/manager.ts +++ b/lib/manager.ts @@ -32,7 +32,7 @@ interface EngineOptions { /** * Any query parameters in our uri. Set from the URI passed when connecting */ - query: Object; + query: { [key: string]: string }; /** * `http.Agent` to use, defaults to `false` (NodeJS only) diff --git a/lib/url.ts b/lib/url.ts index 8154c469f..9bf930937 100644 --- a/lib/url.ts +++ b/lib/url.ts @@ -18,7 +18,7 @@ type ParsedUrl = { query: string; anchor: string; pathNames: Array; - queryKey: Record; + queryKey: { [key: string]: string }; // Custom properties (not native to parseuri): id: string;