Search
Preparing search index...
The search index is not available
Harmony_SDK_Doc
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
harmony-network
Emitter
Class Emitter
Hierarchy
Emitter
Index
Constructors
constructor
Properties
emit
emitter
handlers
off
promise
reject
resolve
then
Methods
add
Event
Listener
listener
Count
on
on
Data
on
Error
once
remove
Event
Listener
reset
Handlers
Constructors
constructor
new
Emitter
(
)
:
Emitter
Returns
Emitter
Properties
emit
emit
:
(
type
:
string
, event
?:
any
)
=>
void
Type declaration
(
type
:
string
, event
?:
any
)
:
void
Parameters
type:
string
Optional
event:
any
Returns
void
emitter
emitter
:
mitt.Emitter
Optional
handlers
handlers
:
any
off
off
:
(
type
:
string
, handler
:
mitt.Handler
)
=>
void
Type declaration
(
type
:
string
, handler
:
mitt.Handler
)
:
void
Parameters
type:
string
handler:
mitt.Handler
Returns
void
promise
promise
:
Promise
<
{}
>
Optional
reject
reject
:
any
Optional
resolve
resolve
:
any
Optional
then
then
:
any
Methods
add
Event
Listener
add
Event
Listener
(
type
:
string
, handler
:
mitt.Handler
)
:
void
Parameters
type:
string
handler:
mitt.Handler
Returns
void
listener
Count
listener
Count
(
listenKey
:
any
)
:
number
Parameters
listenKey:
any
Returns
number
on
on
(
type
:
string
, handler
:
mitt.Handler
)
:
this
Parameters
type:
string
handler:
mitt.Handler
Returns
this
on
Data
on
Data
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
on
Error
on
Error
(
error
:
any
)
:
void
Parameters
error:
any
Returns
void
once
once
(
type
:
string
, handler
:
mitt.Handler
)
:
void
Parameters
type:
string
handler:
mitt.Handler
Returns
void
remove
Event
Listener
remove
Event
Listener
(
type
?:
string
, handler
?:
mitt.Handler
)
:
any
Parameters
Optional
type:
string
Optional
handler:
mitt.Handler
Returns
any
reset
Handlers
reset
Handlers
(
)
:
void
Returns
void
Globals
harmony-
account
harmony-
contract
harmony-
core
harmony-
crypto
harmony-
network
harmony-
staking
harmony-
transaction
harmony-
utils
Provider
Type
Emitter
constructor
emit
emitter
handlers
off
promise
reject
resolve
then
add
Event
Listener
listener
Count
on
on
Data
on
Error
once
remove
Event
Listener
reset
Handlers
Http
Provider
Log
Sub
Messenger
New
Headers
New
Pending
Transactions
Provider
Subscription
Method
WSProvider
Generated using
TypeDoc