UNPKG

934 BTypeScriptView Raw
1import { Manager, ManagerOptions } from "./manager.js";
2import { Socket, SocketOptions } from "./socket.js";
3/**
4 * Looks up an existing `Manager` for multiplexing.
5 * If the user summons:
6 *
7 * `io('http://localhost/a');`
8 * `io('http://localhost/b');`
9 *
10 * We reuse the existing instance based on same scheme/port/host,
11 * and we initialize sockets for each namespace.
12 *
13 * @public
14 */
15declare function lookup(opts?: Partial<ManagerOptions & SocketOptions>): Socket;
16declare function lookup(uri?: string, opts?: Partial<ManagerOptions & SocketOptions>): Socket;
17/**
18 * Protocol version.
19 *
20 * @public
21 */
22export { protocol } from "socket.io-parser";
23/**
24 * Expose constructors for standalone build.
25 *
26 * @public
27 */
28export { Manager, ManagerOptions, Socket, SocketOptions, lookup as io, lookup as connect, lookup as default, };
29export { Fetch, NodeXHR, XHR, NodeWebSocket, WebSocket, WebTransport, } from "engine.io-client";