API Reference
@univerjs
@univerjs/rpc
functions
Frommodule

@univerjs/rpc v0.2.11Docs


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

packages/rpc/src/services/rpc/rpc.service.ts:45 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.