-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
β‘ Feature: Add Rate Limiting
π Description
Introduce rate limiting to prevent spam messages being sent from the same wallet. This ensures a smoother chat experience and protects against abuse.
Expected Behavior
- Each wallet should have a message send limit within a defined time window.
- If the limit is exceeded, further messages should be temporarily blocked.
- Provide user feedback (e.g., βYou are sending messages too quickly. Please wait.β).
- Limits should reset automatically after the cooldown period.
π Technical Notes
- Implement rate limiting logic at the SDK/service layer to ensure consistency.
- Consider configurable thresholds (e.g., X messages per Y seconds).
- Ensure compatibility with existing real-time rendering and typing indicator features.
- Maintain responsive UI without breaking layout or wallet functionality.
β Verification
- Spam attempts from a single wallet are blocked after exceeding the threshold.
- Cooldown period restores normal functionality.
- Works consistently across browsers and devices.
npm run lintandnpm run buildsucceed.- No regression in message rendering, typing indicator, or wallet integration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program