code: function docPreEventFunction(event, socket) {
  				// send update info to global log 
  				live.emit('log:doc', event);			
  				/* send the users change events */
  				socket.emit('doc:pre', event);
  				socket.emit('doc:pre:' + event.type, event);
  			}
docs: /* add live doc pre events live.on('doc:Pre', docPreEventFunction); /* add live doc post events live.on('doc:Post', docPostEventFunction); event functions