nestj/client/typescript/node.ts
Hellings 3e104ded8d
Some checks are pending
Build and publish / verify (push) Waiting to run
Build and publish / publish (push) Blocked by required conditions
branch(main): Initial commit.
2026-09-12 08:20:46 -04:00

13 lines
351 B
TypeScript

import WebSocket from "ws";
import { NestjWebSocketClient, type WebSocketClient } from "./index.js";
export function createNodeWebSocketClient(
url: string,
protocols?: string | string[],
): WebSocketClient {
return new NestjWebSocketClient(
url,
protocols,
WebSocket as unknown as import("./index.js").WebSocketConstructor,
);
}