Skip to content

feat: Add rate limiting to prevent spam messages (#72)#77

Open
Nexha-dev wants to merge 2 commits intoLumina-eX:mainfrom
Nexha-dev:main
Open

feat: Add rate limiting to prevent spam messages (#72)#77
Nexha-dev wants to merge 2 commits intoLumina-eX:mainfrom
Nexha-dev:main

Conversation

@Nexha-dev
Copy link

  • Implement rate limiter with 5 messages per 10 seconds per wallet
  • Add rate limit check in WebSocket client before sending messages
  • Display user-friendly toast notification when limit exceeded
  • Implement optimistic UI rollback on rate limit failure
  • Add automatic cooldown reset with sliding window algorithm
  • Fix pre-existing syntax errors in chat page

Closes #72

- Implement rate limiter with 5 messages per 10 seconds per wallet
- Add rate limit check in WebSocket client before sending messages
- Display user-friendly toast notification when limit exceeded
- Implement optimistic UI rollback on rate limit failure
- Add automatic cooldown reset with sliding window algorithm
- Fix pre-existing syntax errors in chat page

Closes Lumina-eX#72
@SudiptaPaul-31
Copy link
Collaborator

@Nexha-dev Please resolve conflicts

@SudiptaPaul-31
Copy link
Collaborator

@Nexha-dev resolve conflicts

@Nexha-dev
Copy link
Author

@SudiptaPaul-31 conflicts resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Rate Limiting

2 participants