Skip to content

Commit

Permalink
heartbeat when Connected
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Mar 14, 2024
1 parent 2f083ee commit 12c7447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DiscordGateway/Shard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const make = Effect.gen(function* (_) {

const heartbeatSend = (p: Message) =>
Effect.flatMap(Ref.get(phase), phase =>
phase !== Phase.Connecting
phase === Phase.Connected
? Queue.offer(outboundQueue, p)
: Effect.succeed(false),
)
Expand Down

0 comments on commit 12c7447

Please sign in to comment.