API Reference
@univerjs
@univerjs/rpc
classes
Channelservice

@univerjs/rpc v0.4.2Docs


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

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

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

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


registerChannel()

registerChannel(name, channel): void

Parameters

ParameterType
namestring
channelIChannel

Returns

void

Defined in

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


requestChannel()

requestChannel(name): IChannel

Parameters

ParameterType
namestring

Returns

IChannel

Defined in

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


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