[PR #33] [CLOSED] feat: add internal ratelimiter for sending messages #64

Closed
opened 2026-02-16 12:26:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/33
Author: @sussycatgirl
Created: 1/16/2022
Status: Closed

Base: masterHead: pr-1


📝 Commits (3)

  • a026892 feat: add internal ratelimiter for sending messages
  • f561c0f fix: minor ratelimiter fixes
  • c11c539 fix: use x-ratelimit-* headers

📊 Changes

3 files changed (+118 additions, -6 deletions)

View changed files

📝 src/Client.ts (+15 -1)
📝 src/maps/Channels.ts (+24 -5)
src/util/ratelimiter.ts (+79 -0)

📄 Description

Delta does not return a Retry-After header yet, I'm leaving this as a draft until that's added


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stoatchat/javascript-client-sdk/pull/33 **Author:** [@sussycatgirl](https://github.com/sussycatgirl) **Created:** 1/16/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `pr-1` --- ### 📝 Commits (3) - [`a026892`](https://github.com/stoatchat/javascript-client-sdk/commit/a0268923a5b2a5356f9b83a2bb6332a12e3aa005) feat: add internal ratelimiter for sending messages - [`f561c0f`](https://github.com/stoatchat/javascript-client-sdk/commit/f561c0f0ad97868be3297e2a4c2814a0eb4bbd5d) fix: minor ratelimiter fixes - [`c11c539`](https://github.com/stoatchat/javascript-client-sdk/commit/c11c53966c792cc142ff0e982a6ba1b1c7bd4074) fix: use x-ratelimit-* headers ### 📊 Changes **3 files changed** (+118 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/Client.ts` (+15 -1) 📝 `src/maps/Channels.ts` (+24 -5) ➕ `src/util/ratelimiter.ts` (+79 -0) </details> ### 📄 Description Delta does not return a `Retry-After` header yet, I'm leaving this as a draft until that's added --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 12:26:56 -05:00
yindo closed this issue 2026-02-16 12:26:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#64