[ANN] thor, the mighty websocket hammering god of thunder & pre-commit, the forgotten git hook

1,042 views
Skip to first unread message

3rdEden

unread,
Apr 10, 2013, 7:45:00 AM4/10/13
to nod...@googlegroups.com

Thor is a WebSocket load generator tool that i've developed to "accurately" test WebSocket servers and proxies. It's written in node and uses the awesome `ws` module. Some of it's features are:

  • Supports multiple urls
  • Custom message generators
  • Can write utf-8, binary and masked messages
  • Different sizes of messages
  • Custom concurrency and message counts

I've build this tool during my research on WebSocket capable proxies like http-proxy from Nodejitsu, Nginx and HAProxy. The results of this research is found at: https://github.com/observing/balancerbattle

You can install thor from npm using:

npm install -g thor

Would love to get some feedback on it and patches are welcomed!

In addition to the release of thor i've also a written a nifty module called:


pre-commit automatically installs a pre-commit hook in your git repository which will run your `npm test` before you commit your code. Now you will never have broken test suites again ;) (unless you forcefully ignore git hooks using git commit -n). In addition to running your `npm test` it can also run all other scripts that you've specified in your package.json.

npm install pre-commit --save-dev

Anyways, check it out. It's a really simple project but can be really helpful for larger module authors which want their contributors to always run the tests when they commit/pull request something.

Luke Arduini

unread,
Apr 10, 2013, 8:03:24 AM4/10/13
to nod...@googlegroups.com
This is nice.


--
--
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 nod...@googlegroups.com
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
 
---
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.
 
 

Zbeen

unread,
Jul 18, 2013, 7:50:53 PM7/18/13
to nod...@googlegroups.com
Hi,

I am having problem in installing thor. When I type npm install -g thor, following is the message that shows up. I am not sure about the problem. Please help me out! Thanks!


unbuild th...@1.0.0
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "thor"
npm ERR! cwd C:\Users\Rahnuma
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.3.2
npm ERR! code ENOGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Rahnuma\npm-debug.log
npm ERR! not ok code 0

Arnout Kazemier

unread,
Jul 19, 2013, 5:33:46 AM7/19/13
to nod...@googlegroups.com
Some of the dependencies have to be installed through git, so make sure you have that installed on your system.

Founder: Observe.it

Lead Software Engineer: Nodejitsu.com


Twitter: @3rdEden

Github: @3rd-Eden

Skype: arnoutkazemier

Mobile: +31623254031

--

Arundaya Mishra

unread,
Feb 27, 2015, 4:54:18 PM2/27/15
to nod...@googlegroups.com
I was using the thor to test one websocket application. It works great with ws but with wss its showing an error of unable_to_verify_leaf_signature. I hope the issue is with certificates thing but don't know how to resolve it. Any help on it.

3rdEden

unread,
Feb 27, 2015, 11:14:21 PM2/27/15
to nod...@googlegroups.com
So, that means you're using self signed certificates somewhere which are unsave so node starts bitching about it. So you can use

NODE_TLS_REJECT_UNAUTHORIZED=0 thor <things>

To disable this node crap..

Op vrijdag 27 februari 2015 13:54:18 UTC-8 schreef Arundaya Mishra:

Arundaya Mishra

unread,
Mar 31, 2015, 7:51:52 AM3/31/15
to nod...@googlegroups.com
Hey, thanks it helped to create a connection. But am not receiving any message from the server to thor. Its happening with wss connection only.I checked, to be sure that there is no error in the app deployment but I was receiving the response from server(using websocket.org echo test). Currently, Thor is showing message received=0 (whatever may be the message sent). Its working with non-ssl websocket connection but SSL one fails. Any suggestion?
Reply all
Reply to author
Forward
0 new messages