Cell API
Docs
GitHub
Preparing search index...
@celljs/rpc
common
AbstractChannel
Class AbstractChannel
Abstract
Hierarchy (
View Summary
)
AbstractChannel
HttpChannel
Implements
Channel
Disposable
Index
Constructors
constructor
Properties
do
Send
fire
Error
fire
Message
id
to
Dispose
Methods
check
Not
Disposed
dispose
do
Get
Message
handle
Message
on
Error
on
Message
send
Constructors
constructor
new
AbstractChannel
(
id
:
number
,
doSend
:
(
content
:
string
)
=>
Promise
<
void
>
,
)
:
AbstractChannel
Parameters
id
:
number
doSend
:
(
content
:
string
)
=>
Promise
<
void
>
Returns
AbstractChannel
Properties
Protected
Readonly
do
Send
doSend
:
(
content
:
string
)
=>
Promise
<
void
>
fire
Error
fireError
:
(
reason
:
any
)
=>
void
= ...
Protected
fire
Message
fireMessage
:
(
data
:
any
)
=>
void
= ...
Readonly
id
id
:
number
Protected
Readonly
to
Dispose
toDispose
:
any
= ...
Methods
Protected
check
Not
Disposed
checkNotDisposed
()
:
void
Returns
void
dispose
dispose
()
:
void
Dispose this object.
Returns
void
Abstract
do
Get
Message
doGetMessage
(
content
:
string
)
:
Channel
.
Message
Parameters
content
:
string
Returns
Channel
.
Message
Abstract
handle
Message
handleMessage
(
message
:
Channel
.
Message
)
:
void
Parameters
message
:
Channel
.
Message
Returns
void
on
Error
onError
(
cb
:
(
reason
:
any
)
=>
void
)
:
void
Parameters
cb
:
(
reason
:
any
)
=>
void
Returns
void
on
Message
onMessage
(
cb
:
(
data
:
any
)
=>
void
)
:
void
Parameters
cb
:
(
data
:
any
)
=>
void
Returns
void
send
send
(
content
:
string
)
:
void
Parameters
content
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
do
Send
fire
Error
fire
Message
id
to
Dispose
Methods
check
Not
Disposed
dispose
do
Get
Message
handle
Message
on
Error
on
Message
send
Docs
GitHub
Cell API
Loading...
Dispose this object.