protocol (lib/index.ts)

socket.io · packages/engine.io-client/lib/index.ts · typescript · MIT
realtime

Exports core protocol and transport utilities for socket.io client, enabling real‑time communication.

// Source: https://github.com/socketio/socket.io | License: MIT | Copyright 2014-present Guillermo Rauch and Socket.IO contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { Socket } from "./socket.js";

export { Socket };
export {
  HandshakeData,
  SocketOptions,
  SocketReservedEvents,
  WriteOptions,
  TransportCtor,
  TransportName,
} from "./socket.js";
export const protocol = Socket.protocol;
export {
  Transport,
  TransportError,
  TransportReservedEvents,
} from "./transport.js";
export { transports } from "./transports/index.js";
export { installTimerFunctions } from "./util.js";
export { parse } from "./contrib/parseuri.js";
export { Cookie, nextTick } from "./globals.node.js";

export { Fetch } from "./transports/polling-fetch.js";
export { XHR 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key