IHubProtocol.js 1.7 KB

1234567891011121314151617181920212223
  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. /** Defines the type of a Hub Message. */
  6. var MessageType;
  7. (function (MessageType) {
  8. /** Indicates the message is an Invocation message and implements the {@link @aspnet/signalr.InvocationMessage} interface. */
  9. MessageType[MessageType["Invocation"] = 1] = "Invocation";
  10. /** Indicates the message is a StreamItem message and implements the {@link @aspnet/signalr.StreamItemMessage} interface. */
  11. MessageType[MessageType["StreamItem"] = 2] = "StreamItem";
  12. /** Indicates the message is a Completion message and implements the {@link @aspnet/signalr.CompletionMessage} interface. */
  13. MessageType[MessageType["Completion"] = 3] = "Completion";
  14. /** Indicates the message is a Stream Invocation message and implements the {@link @aspnet/signalr.StreamInvocationMessage} interface. */
  15. MessageType[MessageType["StreamInvocation"] = 4] = "StreamInvocation";
  16. /** Indicates the message is a Cancel Invocation message and implements the {@link @aspnet/signalr.CancelInvocationMessage} interface. */
  17. MessageType[MessageType["CancelInvocation"] = 5] = "CancelInvocation";
  18. /** Indicates the message is a Ping message and implements the {@link @aspnet/signalr.PingMessage} interface. */
  19. MessageType[MessageType["Ping"] = 6] = "Ping";
  20. /** Indicates the message is a Close message and implements the {@link @aspnet/signalr.CloseMessage} interface. */
  21. MessageType[MessageType["Close"] = 7] = "Close";
  22. })(MessageType = exports.MessageType || (exports.MessageType = {}));
  23. //# sourceMappingURL=IHubProtocol.js.map