@Cards-TS
Preparing search index...
@cards-ts/core
Protocol
Interface Protocol<T>
Generic interface for a medium that can have messages sent over channels
interface
Protocol
<
T
extends
string
=
string
>
{
receiveAll
(
channel
:
T
)
:
Observable
<
Serializable
[]
>
;
send
(
channel
:
T
,
...
data
:
Serializable
[]
)
:
Promise
<
void
>
;
sendAndReceive
(
channel
:
T
,
...
data
:
Serializable
[]
,
)
:
[
sent
:
Promise
<
void
>
,
received
:
Promise
<
Serializable
[]
>
]
;
}
Type Parameters
T
extends
string
=
string
Index
Methods
receive
All
send
send
And
Receive
Methods
receive
All
receiveAll
(
channel
:
T
)
:
Observable
<
Serializable
[]
>
Parameters
channel
:
T
Returns
Observable
<
Serializable
[]
>
send
send
(
channel
:
T
,
...
data
:
Serializable
[]
)
:
Promise
<
void
>
Parameters
channel
:
T
...
data
:
Serializable
[]
Returns
Promise
<
void
>
send
And
Receive
sendAndReceive
(
channel
:
T
,
...
data
:
Serializable
[]
,
)
:
[
sent
:
Promise
<
void
>
,
received
:
Promise
<
Serializable
[]
>
]
Parameters
channel
:
T
...
data
:
Serializable
[]
Returns
[
sent
:
Promise
<
void
>
,
received
:
Promise
<
Serializable
[]
>
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
receive
All
send
send
And
Receive
@Cards-TS
Loading...
Generic interface for a medium that can have messages sent over channels