src/validity.js
function create_message(req, data) {
		debug.assert(data).is('object');
		if(!is.uuid(data.$id)) {
			data.$id = require('node-uuid').v4();
		}
		req.session.client.messages[data.$id] = data;
	}
function create_message(req, data) {
		debug.assert(data).is('object');
		if(!is.uuid(data.$id)) {
			data.$id = require('node-uuid').v4();
		}
		req.session.client.messages[data.$id] = data;
	}
function create_message ( req , data ) { debug . assert ( data ) . is ( 'object' ) ; if ( ! is . uuid ( data . $id ) ) { data . $id = require ( 'node-uuid' ) . v4 ( ) ; } req . session . client . messages [ data . $id ] = data ; }
Add a message
@fixme This code should be from session.js somehow
Add a message