@univerjs/rpc v0.4.2 • Docs
Class: ChannelService
This service is responsible for managing the RPC channels.
Implements
Constructors
new ChannelService()
new ChannelService(_messageProtocol): ChannelService
Parameters
Parameter | Type |
---|---|
_messageProtocol | IMessageProtocol |
Returns
Defined in
packages/rpc/src/services/rpc/channel.service.ts:37 (opens in a new tab)
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
packages/rpc/src/services/rpc/channel.service.ts:42 (opens in a new tab)
registerChannel()
registerChannel(name, channel): void
Parameters
Parameter | Type |
---|---|
name | string |
channel | IChannel |
Returns
void
Defined in
packages/rpc/src/services/rpc/channel.service.ts:51 (opens in a new tab)
requestChannel()
requestChannel(name): IChannel
Parameters
Parameter | Type |
---|---|
name | string |
Returns
IChannel
Defined in
packages/rpc/src/services/rpc/channel.service.ts:47 (opens in a new tab)