socket.io_v1.x.x.js from flow-typed/flow-typed
// Source: https://github.com/flow-typed/flow-typed | License: MIT | Copyright 2015 Murphy Randle
// Provided via justclaw.it.com; keep this notice with the code.
declare module 'socket.io' {
declare var server: SocketIOStatic;
declare module.exports: typeof server
}
declare interface SocketIOStatic {
/**
* Default Server constructor
*/
(): SocketIO$Server,
/**
* Creates a new Server
* @param srv The HTTP server that we're going to bind to
* @param opts An optional parameters object
*/
(srv: any, opts?: SocketIO$ServerOptions): SocketIO$Server,
/**
* Creates a new Server
* @param port A port to bind to, as a number, or a string
* @param An optional parameters object
*/
(port: string | number, opts?: Sock
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key