does not work benchamrk
Closed this issue · 9 comments
what version of node do you use? Can you try using faye http endpoint like this websokcet-bench -t faye http://localhost:8080/faye
?
latest version of Node JS = 0.10.25. All type benchmark do not work
tested on my laptop with node 0.10.22 no problems, what type of websocket server (engine, and version) do yo use ?
Which in depending
On node 0.10.25 seems to work in my machine
and the server code
var http = require('http'),
faye = require('faye');
var server = http.createServer(),
bayeux = new faye.NodeAdapter({mount: '/faye', timeout: 45});
var i =0;
var counter = {
incoming: function(message, callback) {
console.log(i++);
callback(message);
}
};
bayeux.addExtension(counter);
bayeux.attach(server);
server.listen(8000);
I am going to test other provider
All works, thanks
i cannot work on the socket.io test
test command is :websocket-bench -p io http://***.74.102.178:10666
code is here
var io = require('socket.io').listen(10666);
log.logPrint(config.logLevel.DEBUG, "start listen socket");
io.sockets.on('connection', function(socket) {
log.logPrint(config.logLevel.DEBUG, process.pid + " get the socket:" + socket.id);
});