ITransport.js 1.5 KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. // Licensed to the .NET Foundation under one or more agreements.
  3. // The .NET Foundation licenses this file to you under the MIT license.
  4. Object.defineProperty(exports, "__esModule", { value: true });
  5. exports.TransferFormat = exports.HttpTransportType = void 0;
  6. // This will be treated as a bit flag in the future, so we keep it using power-of-two values.
  7. /** Specifies a specific HTTP transport type. */
  8. var HttpTransportType;
  9. (function (HttpTransportType) {
  10. /** Specifies no transport preference. */
  11. HttpTransportType[HttpTransportType["None"] = 0] = "None";
  12. /** Specifies the WebSockets transport. */
  13. HttpTransportType[HttpTransportType["WebSockets"] = 1] = "WebSockets";
  14. /** Specifies the Server-Sent Events transport. */
  15. HttpTransportType[HttpTransportType["ServerSentEvents"] = 2] = "ServerSentEvents";
  16. /** Specifies the Long Polling transport. */
  17. HttpTransportType[HttpTransportType["LongPolling"] = 4] = "LongPolling";
  18. })(HttpTransportType = exports.HttpTransportType || (exports.HttpTransportType = {}));
  19. /** Specifies the transfer format for a connection. */
  20. var TransferFormat;
  21. (function (TransferFormat) {
  22. /** Specifies that only text data will be transmitted over the connection. */
  23. TransferFormat[TransferFormat["Text"] = 1] = "Text";
  24. /** Specifies that binary data will be transmitted over the connection. */
  25. TransferFormat[TransferFormat["Binary"] = 2] = "Binary";
  26. })(TransferFormat = exports.TransferFormat || (exports.TransferFormat = {}));
  27. //# sourceMappingURL=ITransport.js.map