Preparing search index...
The search index is not available
SDK Core Documentation - v0.0.2-5
SDK Core Documentation
P2PClient
Class P2PClient
Index
Constructors
constructor
Properties
provider
__class
Name
Methods
add
Listener
destroy
end
on
once
prepend
Listener
remove
Listener
send
Constructors
constructor
new
P2PClient
(
options
)
:
P2PClient
Parameters
options
:
P2PClientOptions
Returns
P2PClient
Properties
Readonly
provider
provider
:
P2PProvider
Static
__class
Name
__class
Name
:
string
= 'P2PClient'
Methods
add
Listener
add
Listener
<
T
>
(
event
,
handler
)
:
this
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event
:
T
handler
:
P2PClientEventMap
[
T
]
Returns
this
destroy
destroy
(
err
?
)
:
void
Parameters
Optional
err
:
Error
Returns
void
end
end
(
cb
?
)
:
void
Parameters
Optional
cb
:
P2PHandler
Returns
void
on
on
<
T
>
(
event
,
handler
)
:
this
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event
:
T
handler
:
P2PClientEventMap
[
T
]
Returns
this
once
once
<
T
>
(
event
,
handler
)
:
this
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event
:
T
handler
:
P2PClientEventMap
[
T
]
Returns
this
prepend
Listener
prepend
Listener
<
T
>
(
event
,
handler
)
:
this
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event
:
T
handler
:
P2PClientEventMap
[
T
]
Returns
this
remove
Listener
remove
Listener
<
T
>
(
event
,
handler
)
:
this
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event
:
T
handler
:
P2PClientEventMap
[
T
]
Returns
this
send
send
(
message
,
done
?
)
:
void
Parameters
message
:
PackedTransaction
|
HandshakeMessage
|
ChainSizeMessage
|
GoAwayMessage
|
TimeMessage
|
NoticeMessage
|
RequestMessage
|
SyncRequestMessage
|
SignedBlock
Optional
done
:
P2PHandler
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
provider
__class
Name
add
Listener
destroy
end
on
once
prepend
Listener
remove
Listener
send
SDK Core Documentation - v0.0.2-5
Loading...