Skip to content

Add Rate LimitingΒ #72

@SudiptaPaul-31

Description

@SudiptaPaul-31

⚑ 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 lint and npm run build succeed.
  • No regression in message rendering, typing indicator, or wallet integration.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions