@univerjsrpcclassesChannelservice

@univerjs/rpc v0.5.4


Class: ChannelService

Defined in: submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:32

This service is responsible for managing the RPC channels.

Implements

Constructors

new ChannelService()

new ChannelService(_messageProtocol): ChannelService

Defined in: submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:36

Parameters

ParameterType
_messageProtocolIMessageProtocol

Returns

ChannelService

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:41

Returns

void

Implementation of

IDisposable.dispose


registerChannel()

registerChannel(name, channel): void

Defined in: submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:50

Parameters

ParameterType
namestring
channelIChannel

Returns

void


requestChannel()

requestChannel(name): IChannel

Defined in: submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:46

Parameters

ParameterType
namestring

Returns

IChannel