@univerjs/rpc v0.4.2 • 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
packages/rpc/src/services/rpc/rpc.service.ts:179 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | packages/core/src/shared/lifecycle.ts:117 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/rpc/src/services/rpc/rpc.service.ts:187 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
channelName | string |
Returns
T
Implementation of
IChannelClient.getChannel
Defined in
packages/rpc/src/services/rpc/rpc.service.ts:191 (opens in a new tab)