Commit f3d10b38 authored by Jamen Marz's avatar Jamen Marz

Fix example

parent 45f04346
......@@ -6,7 +6,7 @@ Rate limits the `'message'` event on [`ws`]( objects and tr
// Initialize module at 100 requests per 10 seconds:
var rateLimit = require('ws-rate-limit')(100, '10s')
var rateLimit = require('ws-rate-limit')('10s', 100)
// Handle connections on WS server
wss.on('connection', function (ws) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment