src/protocol/messages.js
function createStreamMessage(parentMessage, streamName, data) {
  var content = {
    name: streamName,
    data: data
  };

  return newMessage(_messageNames.stream, parentMessage, content);
}
function createStreamMessage(parentMessage, streamName, data) {
  var content = {
    name: streamName,
    data: data
  };

  return newMessage(_messageNames.stream, parentMessage, content);
}
Creates a stream message for sending text written to stdout/stderr streams.