Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
ClockSubscriber
Class ClockSubscriber
Hierarchy
ClockSubscriber
Index
Constructors
constructor
Properties
_current
Ts
_latest
Slot
commitment
connection
event
Emitter
is
Unsubscribing
receiving
Data
resub
Timeout
Ms?
subscription
Id
timeout
Id?
Accessors
current
Ts
latest
Slot
Methods
get
Unix
Ts
set
Timeout
subscribe
unsubscribe
Constructors
constructor
new
Clock
Subscriber
(
connection
:
Connection
, config
?:
ClockSubscriberConfig
)
:
ClockSubscriber
Parameters
connection:
Connection
Optional
config:
ClockSubscriberConfig
Returns
ClockSubscriber
Properties
Private
_current
Ts
_current
Ts
:
number
Private
_latest
Slot
_latest
Slot
:
number
commitment
commitment
:
Commitment
Private
connection
connection
:
Connection
event
Emitter
event
Emitter
:
StrictEventEmitter
<
EventEmitter
<
DefaultEventMap
>
,
ClockSubscriberEvent
,
ClockSubscriberEvent
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
Private
is
Unsubscribing
is
Unsubscribing
:
boolean
= false
Private
receiving
Data
receiving
Data
:
boolean
= false
Private
Optional
resub
Timeout
Ms
resub
Timeout
Ms
?:
number
Private
subscription
Id
subscription
Id
:
number
Private
Optional
timeout
Id
timeout
Id
?:
Timeout
Accessors
current
Ts
get
currentTs
(
)
:
number
Returns
number
latest
Slot
get
latestSlot
(
)
:
number
Returns
number
Methods
get
Unix
Ts
get
Unix
Ts
(
)
:
number
Returns
number
Private
set
Timeout
set
Timeout
(
)
:
void
Returns
void
subscribe
subscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
unsubscribe
unsubscribe
(
onResub
?:
boolean
)
:
Promise
<
void
>
Parameters
onResub:
boolean
= false
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Clock
Subscriber
constructor
_current
Ts
_latest
Slot
commitment
connection
event
Emitter
is
Unsubscribing
receiving
Data
resub
Timeout
Ms?
subscription
Id
timeout
Id?
current
Ts
latest
Slot
get
Unix
Ts
set
Timeout
subscribe
unsubscribe
Generated using
TypeDoc