docs: function addSocketEmitTypeFlag(spec) {
    for(var i = 0; i < spec.socketEndpoints.length; i++) {
      var endpoint = spec.socketEndpoints[i];
      endpoint.isEmitSelf = endpoint.emitType === "self";
      endpoint.isEmitAll = endpoint.emitType === "all";
      endpoint.isEmitBroadcast = endpoint.emitType === "broadcast";
      endpoint.payload = endpoint.payload.replace(/(\r\n|\n|\r)/gm,"");
    }
    return spec;
  }