Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- req.connection.addListener('close', function () {
- res.end();
- clearInterval(sendData);
- });
- req.connection.addListener('end', function () {
- res.end();
- clearInterval(sendData);
- });
- sendData = setInterval(function()
- {
- res.write('Ping')
- }, res_interval);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement