code: function view_session_messages(req) {
  		var result = {};
  		result.$ = ARRAY(Object.keys(req.session.client.messages)).filter(is.uuid).map(function(uuid) {
  			return view_session_message(req, req.session.client.messages[uuid]);
  		}).valueOf();
  		result.$ref = ref(req, opts.path+'/messages');
  		return result;
  	}
docs: Prepare for public