@univerjsrpcclassesChannelservice

@univerjs/rpc v0.5.0-beta.1Docs


Class: ChannelService

This service is responsible for managing the RPC channels.

Implements

Constructors

new ChannelService()

new ChannelService(_messageProtocol): ChannelService

Parameters

ParameterType
_messageProtocolIMessageProtocol

Returns

ChannelService

Defined in

submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:37

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:42


registerChannel()

registerChannel(name, channel): void

Parameters

ParameterType
namestring
channelIChannel

Returns

void

Defined in

submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:51


requestChannel()

requestChannel(name): IChannel

Parameters

ParameterType
namestring

Returns

IChannel

Defined in

submodules/univer/packages/rpc/src/services/rpc/channel.service.ts:47