@univerjsrpcclassesChannelclient

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


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

submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:187

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:117

Methods

dispose()

dispose(): void

Returns

void

Overrides

RxDisposable.dispose

Defined in

submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:195


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getChannel()

getChannel<T>(channelName): T

Type Parameters

Type Parameter
T extends IChannel

Parameters

ParameterType
channelNamestring

Returns

T

Implementation of

IChannelClient.getChannel

Defined in

submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:199