Preparing search index...
The search index is not available
Documentation
Documentation
@waku/interfaces
ISubscription
Interface ISubscription
interface
ISubscription
{
ping
(
peerId
?
)
:
Promise
<
SDKProtocolResult
>
;
subscribe
<
T
>
(
decoders
,
callback
,
options
?
)
:
Promise
<
SDKProtocolResult
>
;
unsubscribe
(
contentTopics
)
:
Promise
<
SDKProtocolResult
>
;
unsubscribeAll
(
)
:
Promise
<
SDKProtocolResult
>
;
}
Index
Methods
ping
subscribe
unsubscribe
unsubscribe
All
Methods
ping
ping
(
peerId
?
)
:
Promise
<
SDKProtocolResult
>
Parameters
Optional
peerId
:
PeerId
Returns
Promise
<
SDKProtocolResult
>
subscribe
subscribe
<
T
>
(
decoders
,
callback
,
options
?
)
:
Promise
<
SDKProtocolResult
>
Type Parameters
T
extends
IDecodedMessage
Parameters
decoders
:
IDecoder
<
T
>
|
IDecoder
<
T
>
[]
callback
:
Callback
<
T
>
Optional
options
:
SubscribeOptions
Returns
Promise
<
SDKProtocolResult
>
unsubscribe
unsubscribe
(
contentTopics
)
:
Promise
<
SDKProtocolResult
>
Parameters
contentTopics
:
string
[]
Returns
Promise
<
SDKProtocolResult
>
unsubscribe
All
unsubscribe
All
(
)
:
Promise
<
SDKProtocolResult
>
Returns
Promise
<
SDKProtocolResult
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
ping
subscribe
unsubscribe
unsubscribe
All
Documentation
Loading...