Files
univer/packages/rpc

@univerjs/rpc

npm version license downloads

@univerjs/rpc provides a browser-friendly RPC layer for communicating between the main thread and workers or other message-based runtimes.

Package Overview

Package UMD global CSS Locales Facade entry
@univerjs/rpc UniverRpc No No No

Installation

pnpm add @univerjs/rpc
# or
npm install @univerjs/rpc

Keep all @univerjs/* packages on the same version.

Usage

import { UniverRPCMainThreadPlugin } from '@univerjs/rpc';

univer.registerPlugin(UniverRPCMainThreadPlugin);

Exported plugin classes:

  • UniverRPCMainThreadPlugin
  • UniverRPCWorkerThreadPlugin

Resources