ITransport.js 1.5 KB

1234567891011121314151617181920212223242526
  1. "use strict";
  2. // Copyright (c) .NET Foundation. All rights reserved.
  3. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  4. Object.defineProperty(exports, "__esModule", { value: true });
  5. // This will be treated as a bit flag in the future, so we keep it using power-of-two values.
  6. /** Specifies a specific HTTP transport type. */
  7. var HttpTransportType;
  8. (function (HttpTransportType) {
  9. /** Specifies no transport preference. */
  10. HttpTransportType[HttpTransportType["None"] = 0] = "None";
  11. /** Specifies the WebSockets transport. */
  12. HttpTransportType[HttpTransportType["WebSockets"] = 1] = "WebSockets";
  13. /** Specifies the Server-Sent Events transport. */
  14. HttpTransportType[HttpTransportType["ServerSentEvents"] = 2] = "ServerSentEvents";
  15. /** Specifies the Long Polling transport. */
  16. HttpTransportType[HttpTransportType["LongPolling"] = 4] = "LongPolling";
  17. })(HttpTransportType = exports.HttpTransportType || (exports.HttpTransportType = {}));
  18. /** Specifies the transfer format for a connection. */
  19. var TransferFormat;
  20. (function (TransferFormat) {
  21. /** Specifies that only text data will be transmitted over the connection. */
  22. TransferFormat[TransferFormat["Text"] = 1] = "Text";
  23. /** Specifies that binary data will be transmitted over the connection. */
  24. TransferFormat[TransferFormat["Binary"] = 2] = "Binary";
  25. })(TransferFormat = exports.TransferFormat || (exports.TransferFormat = {}));
  26. //# sourceMappingURL=ITransport.js.map