UNPKG

@libp2p/websockets

Version:

JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec

7 lines 292 B
import type { WebSocket as WSSWebSocket } from 'ws'; /** * Adds properties/methods to a `WebSocket` instance from the `ws` module to be * compatible with the `globalThis.WebSocket` API */ export declare function toWebSocket(ws: WSSWebSocket): WebSocket; //# sourceMappingURL=utils.d.ts.map