sip.js
Version:
A SIP library for JavaScript
25 lines (24 loc) • 612 B
JavaScript
/**
* A request to end a {@link Session} (incoming BYE).
* @public
*/
export class Bye {
/** @internal */
constructor(incomingByeRequest) {
this.incomingByeRequest = incomingByeRequest;
}
/** Incoming BYE request message. */
get request() {
return this.incomingByeRequest.message;
}
/** Accept the request. */
accept(options) {
this.incomingByeRequest.accept(options);
return Promise.resolve();
}
/** Reject the request. */
reject(options) {
this.incomingByeRequest.reject(options);
return Promise.resolve();
}
}