I am developing application which has whiteboard. Whiteboard should work like idroo.com. One user is drawing something another user should be able to see it on his browser in real time. I use fabricjs as canvas wrapper and it has everithing I need. But I can't emulate free drawing on canvas. I send mouse position and brush options to remote client and try to render them by firing mouse move events. But it don't work. If some body has simialiar problem can you please help?
canvasContainer.on('mousemove', function (e) {
var left = canvasContainer.offset().left;
var top = canvasContainer.offset().top;
var x = e.pageX - left;
var y = e.pageY - top;
//Send data to remote browser by socket.io or signalr
//I need to draw on remote browser by these x and y coordinates.
updateCursor(_connections, x, y);
});