lib/core/utils/respondable.js
function parseMessage(dataString) {
		/*eslint no-empty: 0*/
		var data;
		if (typeof dataString !== 'string') {
			return;
		}

		try {
			data = JSON.parse(dataString);
		} catch (ex) {}

		if (!verify(data)) {
			return;
		}

		if (typeof data.error === 'object') {
			data.error = buildErrorObject(data.error);
		} else {
			data.error = undefined;
		}
		return data;
	}
function parseMessage(dataString) {
		/*eslint no-empty: 0*/
		var data;
		if (typeof dataString !== 'string') {
			return;
		}

		try {
			data = JSON.parse(dataString);
		} catch (ex) {}

		if (!verify(data)) {
			return;
		}

		if (typeof data.error === 'object') {
			data.error = buildErrorObject(data.error);
		} else {
			data.error = undefined;
		}
		return data;
	}
function parseMessage ( dataString ) { /*eslint no-empty: 0*/ var data ; if ( typeof dataString !== 'string' ) { return ; } try { data = JSON . parse ( dataString ) ; } catch ( ex ) { } if ( ! verify ( data ) ) { return ; } if ( typeof data . error === 'object' ) { data . error = buildErrorObject ( data . error ) ; } else { data . error = undefined ; } return data ; }
Parse the received message for processing
@param  {string} dataString Message received
@return {object}            Object to be used for pub/sub
Parse the received message for processing