0

I'm using javascript to send my server the entire 'mousemove' event. I can log the event but as soon as it reaches my server it just shows up as

{}

my code:

var socket = io();

window.addEventListener('mousemove', function(ev){
    console.log(ev);
    socket.emit('mousemove', ev);
}, true, true);

any help or direction is greatly appreciated.

0 Answers0