@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
12 lines • 507 B
TypeScript
/**
* Utility functions for wrapping Node.js sockets into standard web streams.
*/
import type { Socket } from "node:net";
import type { SockConn } from "../socket/socket.ts";
/**
* Wraps a Node.js socket into a standard web streams-based socket connection
* @param socket - The Node.js socket to wrap
* @returns A socket connection object with readable/writable streams and close method
*/
export declare function wrapNodeSocket(socket: Socket): SockConn;
//# sourceMappingURL=wrapNodeSocket.d.ts.map