IHubProtocol.js 1.8 KB

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