src/protocol/messages.js
function createDataMessage(parentMessage, representations) {
  var content = {
    data: representations
  };

  return newMessage(_messageNames.displayData, parentMessage, content);
}
function createDataMessage(parentMessage, representations) {
  var content = {
    data: representations
  };

  return newMessage(_messageNames.displayData, parentMessage, content);
}
Creates a display data message for sending results of an execution.