# Pastebin dqoUoQke var io = require('socket.io-client'); var socket = io(); var count = 0; var timer = performance.now(); socket.on('open', ()=> { socket.send("hi"); }) socket.on('message', (data) => { socket.send("test 04 aslk ksldfjaslkfalksf"); count++; }); setInterval(function () { var t2 = performance.now(); var time = t2 - timer; console.log(time); console.log("Count is: " + count + " with " + (count / time / 1000)); count = 0; timer = performance.now(); }, 1000);