couch-kit
Preparing search index...
@couch-kit/host
ActionRateLimiter
Class ActionRateLimiter
Per-socket action limiter that preserves the host provider's original fixed-window algorithm.
Index
Constructors
constructor
Methods
clear
get
record
reset
Constructors
constructor
new
ActionRateLimiter
(
options
?:
ActionRateLimiterOptions
)
:
ActionRateLimiter
Parameters
options
:
ActionRateLimiterOptions
= {}
Returns
ActionRateLimiter
Methods
clear
clear
()
:
void
Returns
void
get
get
(
socketId
:
string
)
:
RateLimitInfo
|
undefined
Parameters
socketId
:
string
Returns
RateLimitInfo
|
undefined
record
record
(
socketId
:
string
)
:
RateLimitResult
Parameters
socketId
:
string
Returns
RateLimitResult
reset
reset
(
socketId
:
string
)
:
void
Parameters
socketId
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
clear
get
record
reset
couch-kit
Loading...
Per-socket action limiter that preserves the host provider's original fixed-window algorithm.