mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 12:33:47 +08:00
Ran the following script to update engine.io and socket.io packages to address the security issue tracked in crbug.com/1447254: `npm run install-deps audit fix --audit-level=critical` Bug: 1447254 Change-Id: Ia617b76882259bdab5259855029353701ff0bc1e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4551951 Reviewed-by: Danil Somsikov <dsv@chromium.org> Reviewed-by: Brandon Walderman <brwalder@microsoft.com> Commit-Queue: Guangyue Xu <guangyue.xu@microsoft.com>
29 lines
983 B
TypeScript
29 lines
983 B
TypeScript
import { Server, AttachOptions, ServerOptions } from "./server";
|
|
import transports from "./transports/index";
|
|
import * as parser from "engine.io-parser";
|
|
export { Server, transports, listen, attach, parser };
|
|
export type { AttachOptions, ServerOptions, BaseServer } from "./server";
|
|
export { uServer } from "./userver";
|
|
export { Socket } from "./socket";
|
|
export { Transport } from "./transport";
|
|
export declare const protocol = 4;
|
|
/**
|
|
* Creates an http.Server exclusively used for WS upgrades.
|
|
*
|
|
* @param {Number} port
|
|
* @param {Function} callback
|
|
* @param {Object} options
|
|
* @return {Server} websocket.io server
|
|
* @api public
|
|
*/
|
|
declare function listen(port: any, options: AttachOptions & ServerOptions, fn: any): Server;
|
|
/**
|
|
* Captures upgrade requests for a http.Server.
|
|
*
|
|
* @param {http.Server} server
|
|
* @param {Object} options
|
|
* @return {Server} engine server
|
|
* @api public
|
|
*/
|
|
declare function attach(server: any, options: AttachOptions & ServerOptions): Server;
|