UNPKG

@aspnet/signalr

Version:

ASP.NET Core SignalR Client

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