UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

54 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NullState = void 0; const SessionState_1 = require("../SessionState"); const TerminationCause_1 = require("../TerminationCause"); const _3 = require("."); class NullState extends _3.FsmState { constructor() { super(SessionState_1.SessionState.Terminated); } throw() { throw new Error("Invalid state (null)"); } get sessionState() { this.throw(); return SessionState_1.SessionState.Terminated; } get terminationCause() { this.throw(); return TerminationCause_1.TerminationCause.None; } onSessionDescription(_1, _2) { this.throw(); } onInboundMessage(_) { this.throw(); } onTimeout(_) { this.throw(); } onException(_) { this.throw(); } terminate(_) { this.throw(); } accept() { this.throw(); } enter(_) { this.throw(); } exit(_) { this.throw(); } transition(_) { this.throw(); } onCandidate(_1, _2) { this.throw(); } } exports.NullState = NullState; //# sourceMappingURL=NullState.js.map