UNPKG

nxkit

Version:

This is a collection of tools, independent of any other libraries

10 lines (9 loc) 287 B
/// <reference types="node" /> import * as http from 'http'; /** * @func upgrade() create websocket * @arg {http.ServerRequest} req * @arg {Buffer} upgradeHead * @ret {Conversation} */ export default function upgrade(req: http.IncomingMessage, upgradeHead: any): any;