ITransport.js 1.3 KB

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