You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
node wsbench -r 10 ws://localhost:3010
The "sys" module is now called "util". It should have a similar interface.
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: object is not a function
at RegExp.CALL_NON_FUNCTION (native)
at contains_expr (/wsbench/lib/optparse.js:144:23)
at build_rules (/wsbench/lib/optparse.js:77:13)
at Object.parse (/wsbench/lib/optparse.js:224:21)
at Object. (/wsbench/wsbench:113:4)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
What I did? Updated lib/optparse.js to 1.0.3 (https://raw.github.com/jfd/optparse-js/master/lib/optparse.js)
Edited wsbench and lib/websocket.js and changed line "var sys = require('sys');" to "var sys = require('util');" to get rid of the warning.
Yeah, it should be refactored in a better way but who cares.
Any eta on when wsbench will be updated to work with node 0.6.x?
The text was updated successfully, but these errors were encountered: