@univerjs/rpc-node
이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.
Node.js RPC plugins for Univer main-thread and worker communication.
TypeScript
import { fileURLToPath } from 'node:url'import { UniverRPCNodeMainPlugin } from '@univerjs/rpc-node'univer.registerPlugin(UniverRPCNodeMainPlugin, { workerSrc: fileURLToPath(new URL('./worker.js', import.meta.url)),})workerSrc is required when the main-thread plugin starts. Build the following worker entry separately and point workerSrc to its output.
TypeScript
import { UniverRPCNodeWorkerPlugin } from '@univerjs/rpc-node'univer.registerPlugin(UniverRPCNodeWorkerPlugin)이 가이드는 어떠셨나요?