IHubProtocol.js (1904B)
1 /* 2 * A protocol abstraction for communicating with SignalR hubs. 3 * 4 * Copyright (c) .NET Foundation. All rights reserved. 5 * 6 * This source code is licensed under the Apache License, Version 2.0, 7 * found in the LICENSE.txt file in the root directory of the library 8 * source tree. 9 * 10 * https://github.com/aspnet/AspNetCore 11 */ 12 13 "use strict"; 14 15 Object.defineProperty(exports, "__esModule", { value: true }); 16 /** Defines the type of a Hub Message. */ 17 var MessageType; 18 (function (_MessageType) { 19 /** Indicates the message is an Invocation message and implements the {@link @microsoft/signalr.InvocationMessage} interface. */ 20 MessageType[(MessageType.Invocation = 1)] = "Invocation"; 21 /** Indicates the message is a StreamItem message and implements the {@link @microsoft/signalr.StreamItemMessage} interface. */ 22 MessageType[(MessageType.StreamItem = 2)] = "StreamItem"; 23 /** Indicates the message is a Completion message and implements the {@link @microsoft/signalr.CompletionMessage} interface. */ 24 MessageType[(MessageType.Completion = 3)] = "Completion"; 25 /** Indicates the message is a Stream Invocation message and implements the {@link @microsoft/signalr.StreamInvocationMessage} interface. */ 26 MessageType[(MessageType.StreamInvocation = 4)] = "StreamInvocation"; 27 /** Indicates the message is a Cancel Invocation message and implements the {@link @microsoft/signalr.CancelInvocationMessage} interface. */ 28 MessageType[(MessageType.CancelInvocation = 5)] = "CancelInvocation"; 29 /** Indicates the message is a Ping message and implements the {@link @microsoft/signalr.PingMessage} interface. */ 30 MessageType[(MessageType.Ping = 6)] = "Ping"; 31 /** Indicates the message is a Close message and implements the {@link @microsoft/signalr.CloseMessage} interface. */ 32 MessageType[(MessageType.Close = 7)] = "Close"; 33 })((MessageType = exports.MessageType || (exports.MessageType = {})));