Im trying to use faye sockets as the way to sync.
It works, the only problem is, addSyncListener function doesnt seem to 'kick-in' till random data goes through the open socket first. So i have a little 'chat' app alongside the whiteboard, and it uses the same socket to communate. So the whiteboards dont sync till i send a message over the 'chat', then all of a sudden, making changes to the whiteboard is resulting in sending data over the socket.
No idea why i have to send random data over the socket first before addSyncListener will work.
Also, for some reason, on IOS safari, addSyncListener doesnt seem to ever work from what i can tell. My app running on an iphone can see the whiteboard and changes, but never sends its own changes when the user draws on the whiteboard.
Seems like addSyncListener might need some revisions or something ? Or am i doing something wrong.