API Reference
@univerjs
@univerjs/rpc
classes
Channelclient

@univerjs/rpc v0.4.2Docs


Class: ChannelClient

This method provides implementation for IChannel and is responsible for transforming a local calling to a RPC calling.

Extends

Implements

  • IChannelClient

Constructors

new ChannelClient()

new ChannelClient(_protocol): ChannelClient

Parameters

ParameterType
_protocolIMessageProtocol

Returns

ChannelClient

Overrides

RxDisposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$packages/core/src/shared/lifecycle.ts:117 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

RxDisposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getChannel()

getChannel<T>(channelName): T

Type Parameters

Type Parameter
T extends IChannel

Parameters

ParameterType
channelNamestring

Returns

T

Implementation of

IChannelClient.getChannel

Defined in

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


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