UNPKG

socket.io-client

Version:

[![Build Status](https://github.com/socketio/socket.io-client/workflows/CI/badge.svg?branch=master)](https://github.com/socketio/socket.io-client/actions) [![Dependency Status](https://david-dm.org/socketio/socket.io-client.svg)](https://david-dm.org/sock

34 lines (33 loc) 744 B
declare type ParsedUrl = { source: string; protocol: string; authority: string; userInfo: string; user: string; password: string; host: string; port: string; relative: string; path: string; directory: string; file: string; query: string; anchor: string; pathNames: Array<string>; queryKey: { [key: string]: string; }; id: string; href: string; }; /** * URL parser. * * @param uri - url * @param path - the request path of the connection * @param loc - An object meant to mimic window.location. * Defaults to window.location. * @public */ export declare function url(uri: string | ParsedUrl, path?: string, loc?: Location): ParsedUrl; export {};