Preparing search index...
The search index is not available
@wharfkit/antelope - v0.7.3
@wharfkit/antelope - v0.7.3
P2PClient
Class P2PClient
Hierarchy
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
:
P2PClientOptions
)
:
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
:
T
, handler
:
P2PClientEventMap
[
T
]
)
:
P2PClient
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event:
T
handler:
P2PClientEventMap
[
T
]
Returns
P2PClient
destroy
destroy
(
err
?:
Error
)
:
void
Parameters
Optional
err:
Error
Returns
void
end
end
(
cb
?:
P2PHandler
)
:
void
Parameters
Optional
cb:
P2PHandler
Returns
void
on
on
<
T
>
(
event
:
T
, handler
:
P2PClientEventMap
[
T
]
)
:
P2PClient
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event:
T
handler:
P2PClientEventMap
[
T
]
Returns
P2PClient
once
once
<
T
>
(
event
:
T
, handler
:
P2PClientEventMap
[
T
]
)
:
P2PClient
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event:
T
handler:
P2PClientEventMap
[
T
]
Returns
P2PClient
prepend
Listener
prepend
Listener
<
T
>
(
event
:
T
, handler
:
P2PClientEventMap
[
T
]
)
:
P2PClient
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event:
T
handler:
P2PClientEventMap
[
T
]
Returns
P2PClient
remove
Listener
remove
Listener
<
T
>
(
event
:
T
, handler
:
P2PClientEventMap
[
T
]
)
:
P2PClient
Type Parameters
T
extends
keyof
P2PClientEventMap
Parameters
event:
T
handler:
P2PClientEventMap
[
T
]
Returns
P2PClient
send
send
(
message
:
PackedTransaction
|
HandshakeMessage
|
ChainSizeMessage
|
GoAwayMessage
|
TimeMessage
|
NoticeMessage
|
RequestMessage
|
SyncRequestMessage
|
SignedBlock
, done
?:
P2PHandler
)
:
void
Parameters
message:
PackedTransaction
|
HandshakeMessage
|
ChainSizeMessage
|
GoAwayMessage
|
TimeMessage
|
NoticeMessage
|
RequestMessage
|
SyncRequestMessage
|
SignedBlock
Optional
done:
P2PHandler
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
@wharfkit/antelope -
v0.7.3
ABI
API
v1
Asset
Base58
Key
Type
P2P
Serializer
Struct
Variant
P2PClient
constructor
provider
__class
Name
add
Listener
destroy
end
on
once
prepend
Listener
remove
Listener
send
Generated using
TypeDoc