@univerjs/rpc v0.5.0-beta.1 • Docs
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
Parameter | Type | Description |
---|---|---|
module | unknown | the wrapper service or controller |
Returns
IChannel
the channel instance
Defined in
submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:53