@univerjs/rpc v0.5.0-beta.1 • 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
submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:37
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:42
registerChannel()
registerChannel(name, channel): void
Parameters
Parameter | Type |
---|---|
name | string |
channel | IChannel |
Returns
void
Defined in
submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:51
requestChannel()
requestChannel(name): IChannel
Parameters
Parameter | Type |
---|---|
name | string |
Returns
IChannel
Defined in
submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:47