Restify has a nice throttle plugin, maybe you can adapt that or use the same concept.
http://mcavage.github.com/node-restify/#Bundled-Plugins On Wed, Mar 27, 2013 at 8:44 PM, Enver Arslan <[email protected]>wrote: > It uses Redis. I don't have Redis. It is a simple problem, why I have to > use Redis? Must be a simple solution, right? > > 28 Mart 2013 Perşembe 04:53:50 UTC+2 tarihinde Daniel R. yazdı: >> >> On a recent project we used the RateLimit feature of >> http://redbackjs.com/. >> >> >> -- Daniel R. <[email protected]> [http://danielr.neophi.com/] >> >> >> On Wed, Mar 27, 2013 at 7:09 PM, Enver Arslan <[email protected]>wrote: >> >>> I'm working on chat script with Node.Js and Socket.IO. System working >>> pretty. But the users can send consecutive messages. >>> >>> Also, the users can do this with Firebug or Chrome Dev Tools. The users >>> make 'for loop' with this tools. How do I prevent this problem? >>> >>> Sorry, for my bad English. >>> >>> -- >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-* >>> *Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines> >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> >>> To unsubscribe from this group, send email to >>> nodejs+un...@**googlegroups.com >>> >>> For more options, visit this group at >>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to nodejs+un...@**googlegroups.com. >>> >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- John R. Fitzgerald -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
