Thanks, here's my attempt just sending a random string.
This actually seems slower then streaming from a file so perhaps I'm
missing something.
Making the length of 'PayLoad' larger or smaller doesnt seem to have any
affect.
var io = require('socket.io').listen(81);
var PayLoad =
"PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!PugsRule!";
//Truncated this string for posting purposes.
io.sockets.on('connection', function (socket) {
io.set('log level', 2); // reduce logging
setInterval( function() {
socket.send(PayLoad+PayLoad+PayLoad);
}, 1);
});
--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.