32 lines
No EOL
1,003 B
JavaScript
32 lines
No EOL
1,003 B
JavaScript
"use strict";
|
|
/**
|
|
* @module botframework-streaming
|
|
*/
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TransportDisconnectedEvent = void 0;
|
|
/**
|
|
* Event to be included when disconnection events are fired.
|
|
*/
|
|
class TransportDisconnectedEvent {
|
|
/**
|
|
* Indicates a transport disconnected with the reason provided via the constructor.
|
|
*
|
|
* @remarks
|
|
* This class is used for communicating disconnection events between the
|
|
* PayloadReceiver and PayloadSender.
|
|
* @param reason The reason the disconnection event fired, in plain text.
|
|
*/
|
|
constructor(reason) {
|
|
this.reason = reason;
|
|
}
|
|
}
|
|
exports.TransportDisconnectedEvent = TransportDisconnectedEvent;
|
|
/**
|
|
* A new and empty TransportDisconnectedEvent.
|
|
*/
|
|
TransportDisconnectedEvent.Empty = new TransportDisconnectedEvent();
|
|
//# sourceMappingURL=transportDisconnectedEvent.js.map
|