@univerjs/rpc v0.4.2 • 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
packages/rpc/src/services/rpc/rpc.service.ts:45 (opens in a new tab)