Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDPRateLimiter is not defined #5560

Closed
ghost opened this issue Oct 28, 2015 · 3 comments
Closed

DDPRateLimiter is not defined #5560

ghost opened this issue Oct 28, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2015

On the client: Uncaught ReferenceError: DDPRateLimiter is not defined
On the server: ReferenceError: DDPRateLimiter is not defined

addCommentRule =
  userId: (userId) ->
    type: 'method'
    name: 'getessay'

DDPRateLimiter.addRule addCommentRule, 1, 3000
DDPRateLimiter.setErrorMessage "Please wait three seconds"
@ghost
Copy link
Author

ghost commented Oct 29, 2015

I don't believe the official documentation mentions that in order to use the rate limiter you must install a special ddp-rate-limiter package.

@stubailo
Copy link
Contributor

stubailo commented Nov 3, 2015

Yes, we don't do a good job listing in the docs when you need to add a certain package. For example, this is also the case with ReactiveVar.

@abernix
Copy link
Contributor

abernix commented May 20, 2016

Moving this over to the new docs repo at meteor/docs#14 now that the new docs are up. I will submit a PR for it over there! Closing.

@abernix abernix closed this as completed May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants