Skip to main content
The Deno 2 Release Candidate is here
Learn more
->
Dismiss
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Search…
⌘K
Module
x
/
discordeno_patched
/
gateway
/
shard
/
handleClose.ts
>
Shard
Discord API library for Node and Deno
Macil/discordeno
Version
Latest
18.0.3
18.0.2
Menu
mod.ts
(default module)
I
CreateShard
I
ShardEvents
I
ShardGatewayConfig
I
ShardHeart
I
ShardSocketRequest
T
Shard
v
DEFAULT_HEARTBEAT_INTERVAL
v
GATEWAY_RATE_LIMIT_RESET_INTERVAL
v
MAX_GATEWAY_REQUESTS_PER_INTERVAL
f
calculateSafeRequests
f
close
f
connect
f
createShard
f
handleClose
f
handleMessage
f
identify
f
isOpen
f
resume
f
send
f
shutdown
f
startHeartbeating
f
stopHeartbeating
E
ShardSocketCloseCodes
E
ShardState
calculateSafeRequests.ts
f
calculateSafeRequests
close.ts
f
close
connect.ts
f
connect
createShard.ts
I
CreateShard
f
createShard
deps.ts
f
decompressWith
handleClose.ts
f
handleClose
handleMessage.ts
f
handleMessage
identify.ts
f
identify
isOpen.ts
f
isOpen
resume.ts
f
resume
send.ts
f
send
shutdown.ts
f
shutdown
startHeartbeating.ts
f
startHeartbeating
stopHeartbeating.ts
f
stopHeartbeating
types.ts
I
ShardEvents
I
ShardGatewayConfig
I
ShardHeart
I
ShardSocketRequest
T
Shard
v
DEFAULT_HEARTBEAT_INTERVAL
v
GATEWAY_RATE_LIMIT_RESET_INTERVAL
v
MAX_GATEWAY_REQUESTS_PER_INTERVAL
E
ShardSocketCloseCodes
E
ShardState