@univerjsrpcclassesChannelclient

@univerjs/rpc v0.5.4


Class: ChannelClient

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

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

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

Parameters

ParameterType
_protocolIMessageProtocol

Returns

ChannelClient

Overrides

RxDisposable.constructor

Properties

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

Methods

dispose()

dispose(): void

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

Returns

void

Overrides

RxDisposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

RxDisposable.ensureNotDisposed


getChannel()

getChannel<T>(channelName): T

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

Type Parameters

Type Parameter
T extends IChannel

Parameters

ParameterType
channelNamestring

Returns

T

Implementation of

IChannelClient.getChannel