@univerjs/rpc v0.5.0-beta.1Docs


Function: fromModule()

function fromModule(module): IChannel

Wrapper a service or a controller into a channel so it could be invoked by a remote client. When the protocol is called, it would forward to the underlying service or controller.

Parameters

ParameterTypeDescription
moduleunknownthe wrapper service or controller

Returns

IChannel

the channel instance

Defined in

submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:53