@univerjs/rpc v0.5.4


Function: fromModule()

function fromModule(module): IChannel

Defined in: submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:51

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