Cell API
Docs
GitHub
Preparing search index...
@celljs/rpc
common
HttpChannel
Class HttpChannel
Hierarchy (
View Summary
)
AbstractChannel
HttpChannel
Index
Constructors
constructor
Properties
do
Send
fire
Error
fire
Message
id
path?
to
Dispose
Methods
check
Not
Disposed
dispose
do
Get
Message
handle
Message
on
Error
on
Message
send
Constructors
constructor
new
HttpChannel
(
id
:
number
,
doSend
:
(
content
:
string
)
=>
Promise
<
void
>
,
path
?:
string
,
)
:
HttpChannel
Parameters
id
:
number
doSend
:
(
content
:
string
)
=>
Promise
<
void
>
Optional
path
:
string
Returns
HttpChannel
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
Optional
Readonly
path
path
?:
string
Protected
Readonly
to
Dispose
toDispose
:
any
= ...
Methods
Protected
check
Not
Disposed
checkNotDisposed
()
:
void
Returns
void
dispose
dispose
()
:
void
Dispose this object.
Returns
void
do
Get
Message
doGetMessage
(
content
:
string
)
:
Channel
.
Message
Parameters
content
:
string
Returns
Channel
.
Message
handle
Message
handleMessage
(
message
:
HttpMessage
)
:
void
Parameters
message
:
HttpMessage
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
path
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.