vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
9 lines • 539 B
TypeScript
import type { ServerStreamHandlers } from "../types.js";
import type { MessagePort } from "node:worker_threads";
/**
* Creates handlers for two-port communication: fromWorker for streaming data out, toWorker for control messages in
* Following zero-copy streaming pattern: fromWorker (worker → main), toWorker (main → worker)
*/
export declare function createHandlers(fromWorker?: MessagePort, toWorker?: MessagePort): ServerStreamHandlers;
export declare const handlers: ServerStreamHandlers;
//# sourceMappingURL=handlers.d.ts.map