UNPKG

diffusion

Version:

Diffusion JavaScript client

34 lines (33 loc) 953 B
"use strict"; /** * @module Client */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CloseReasonImpl = void 0; /** * Defined reason code and message used to report client close conditions. */ var CloseReasonImpl = /** @class */ (function () { /** * Create a `CloseReason` * * @param id the close reason's id * @param message the close reason's description * @param canReconnect whether the session can reconnect from this state */ function CloseReasonImpl(id, message, canReconnect) { this.id = id; this.message = message; this.canReconnect = canReconnect; } /** * Convert to string * * @return string representation of the close reason */ CloseReasonImpl.prototype.toString = function () { return 'id: ' + this.message; }; return CloseReasonImpl; }()); exports.CloseReasonImpl = CloseReasonImpl;