Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/wallet-ts
internal
WsConnection
Class WsConnection
Hierarchy
WsConnection
Implements
IJsonRpcConnection
Index
Constructors
constructor
Properties
events
on
Close
on
Open
on
Payload
register
registering
socket
url
Accessors
connected
connecting
Methods
close
off
on
once
open
remove
Listener
send
Constructors
constructor
new
Ws
Connection
(
url
:
string
)
:
WsConnection
Parameters
url:
string
Returns
WsConnection
Properties
events
events
:
EventEmitter
Private
on
Close
on
Close
:
any
Private
on
Open
on
Open
:
any
Private
on
Payload
on
Payload
:
any
Private
register
register
:
any
Private
registering
registering
:
any
Private
socket
socket
:
any
url
url
:
string
Accessors
connected
get
connected
(
)
:
boolean
Returns
boolean
connecting
get
connecting
(
)
:
boolean
Returns
boolean
Methods
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
off
off
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
on
on
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
once
once
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
open
open
(
url
?:
string
)
:
Promise
<
void
>
Parameters
Optional
url:
string
Returns
Promise
<
void
>
remove
Listener
remove
Listener
(
event
:
string
, listener
:
any
)
:
void
Parameters
event:
string
listener:
any
Returns
void
send
send
(
payload
:
JsonRpcPayload
<
any
,
any
>
, context
?:
any
)
:
Promise
<
void
>
Parameters
payload:
JsonRpcPayload
<
any
,
any
>
Optional
context:
any
Returns
Promise
<
void
>
Modules
@injectivelabs/sdk-
ts
@injectivelabs/wallet-
ts
Utils
Wallets
internal
Event
Emitter
Ws
Connection
constructor
events
on
Close
on
Open
on
Payload
register
registering
socket
url
connected
connecting
close
off
on
once
open
remove
Listener
send
Generated using
TypeDoc