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

Generator <file.js> #32

Open
patoigz opened this issue May 27, 2016 · 1 comment
Open

Generator <file.js> #32

patoigz opened this issue May 27, 2016 · 1 comment

Comments

@patoigz
Copy link

patoigz commented May 27, 2016

I can't create a "file.js" without errors. Could you please include an example of this file...

Thank you.

@luposlip
Copy link

I made it work by adding --masked (don't really know what it does):

thor --masked --amount 100 --messages 10 --generator ./test/msg-generator.js "ws://localhost:8080/async

Furthermore I changed the second last line in the generators utf8 function to include the actual data to be sent (should be dynamically generated of course):

cached = cache[key] = new Buffer('+[["~:data",["^ ","~:message-id","~uf632fcc0-7b7d-4282-9113-2e18459ae12c","~:payload",["^ ","~:q","","~:lat",12.66584,"~:lon",20.566247]]]]', "utf-8");

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

No branches or pull requests

2 participants