@univerjs/rpc v0.5.0-beta.1 • Docs
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
Parameter | Type |
---|---|
_protocol | IMessageProtocol |
Returns
Overrides
Defined in
submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:187
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:117 |
Methods
dispose()
dispose(): void
Returns
void
Overrides
Defined in
submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:195
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
channelName | string |
Returns
T
Implementation of
IChannelClient.getChannel
Defined in
submodules/univer/packages/rpc/src/services/rpc/rpc.service.ts:199