title: Comet JSON push to javascript
body: <p>I've been learning Scala for a while on and off and have successfully got a simple real time post system up and running.</p>
  
  <p>I was wondering if anyone out there could help me in the right direction to pushing data changes via JSON to several javascript modules I have running.</p>
  
  <p>Basically what I'm looking for is a Comet system to push JSON data down to some page modules which will then accept the data and work out what to do with it.</p>
  
  <p>For example, I have an html5 canvas which can be drawn upon. Each drawing is temporarily saved in JSON format with co-ordinates of the shape, color, thickness etc. This is then sent to the server to be distributed via Comet to the rest of the room participants.</p>
  
  <p>I'm not really sure what to search for or even where to start looking for this kind of functionality.</p>
  
  <p>Would it be best to save the drawing in a DB and then Comet pick it up and pass it down to other people in the room? </p>
  
  <p>Any help would be much appreciated, thanks in advance, and sorry if my question is vague, if so let me know and I'll happily expand on my explaination.</p>
  
  <p>Cheers</p>