@univerjs/rpc v0.4.2 • Docs
Class: ChannelServer
Extends
Implements
IChannelServer
Constructors
new ChannelServer()
new ChannelServer(_protocol): ChannelServer
Parameters
Parameter | Type |
---|---|
_protocol | IMessageProtocol |
Returns
Overrides
Defined in
packages/rpc/src/services/rpc/rpc.service.ts:325 (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:332 (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)
registerChannel()
registerChannel(channelName, channel): void
Parameters
Parameter | Type |
---|---|
channelName | string |
channel | IChannel |
Returns
void
Implementation of
IChannelServer.registerChannel
Defined in
packages/rpc/src/services/rpc/rpc.service.ts:339 (opens in a new tab)