Skip to content

Commit

Permalink
refactor: match class name
Browse files Browse the repository at this point in the history
  • Loading branch information
Romej committed Aug 13, 2024
1 parent be61b92 commit e350c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/domain/Phone/WebRTCPhone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Inviter, Invitation, Session, SessionDescriptionHandlerOptions } from '
import { SessionDescriptionHandler } from 'sip.js/lib/platform/web';
import CallSession from '../CallSession';
import type { Phone, AvailablePhoneOptions } from './Phone';
import WazoWebRTCClient from '../../web-rtc-client';
import WebRTCClient from '../../web-rtc-client';
import Emitter from '../../utils/Emitter';
import IssueReporter from '../../service/IssueReporter';
import { PeerConnection, WazoSession } from '../types';
Expand Down Expand Up @@ -60,7 +60,7 @@ export const MESSAGE_TYPE_SIGNAL = 'message/TYPE_SIGNAL';
export const events = [ON_USER_AGENT, ON_REGISTERED, ON_UNREGISTERED, ON_PROGRESS, ON_CALL_ACCEPTED, ON_CALL_ANSWERED, ON_CALL_INCOMING, ON_CALL_OUTGOING, ON_CALL_MUTED, ON_CALL_UNMUTED, ON_CALL_RESUMED, ON_CALL_HELD, ON_CALL_UNHELD, ON_CAMERA_DISABLED, ON_CALL_FAILED, ON_CALL_ENDED, ON_CALL_REJECTED, ON_MESSAGE, ON_REINVITE, ON_TRACK, ON_AUDIO_STREAM, ON_VIDEO_STREAM, ON_REMOVE_STREAM, ON_SHARE_SCREEN_ENDED, ON_TERMINATE_SOUND, ON_PLAY_RING_SOUND, ON_PLAY_INBOUND_CALL_SIGNAL_SOUND, ON_PLAY_HANGUP_SOUND, ON_PLAY_PROGRESS_SOUND, ON_VIDEO_INPUT_CHANGE, ON_SHARE_SCREEN_STARTED, ON_CALL_ERROR, ON_CHAT, ON_SIGNAL, ON_NETWORK_STATS, ON_DISCONNECTED, ON_EARLY_MEDIA];
const logger = IssueReporter.loggerFor('webrtc-phone');
export default class WebRTCPhone extends Emitter implements Phone {
client: WazoWebRTCClient;
client: WebRTCClient;

allowVideo: boolean;

Expand Down Expand Up @@ -94,7 +94,7 @@ export default class WebRTCPhone extends Emitter implements Phone {

shouldSendReinvite: boolean;

constructor(client: WazoWebRTCClient, audioOutputDeviceId: string | undefined, allowVideo = false, audioRingDeviceId?: string) {
constructor(client: WebRTCClient, audioOutputDeviceId: string | undefined, allowVideo = false, audioRingDeviceId?: string) {
super();
this.client = client;
this.allowVideo = allowVideo;
Expand Down
6 changes: 3 additions & 3 deletions src/simple/Phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type CallSession from '../domain/CallSession';
import AdHocAPIConference from '../domain/AdHocAPIConference';
import WebRTCPhone, * as PHONE_EVENTS from '../domain/Phone/WebRTCPhone';
import { MESSAGE_TYPE_CHAT, MESSAGE_TYPE_SIGNAL } from '../domain/Phone/WebRTCPhone';
import WazoWebRTCClient, { events as clientEvents, transportEvents } from '../web-rtc-client';
import WebRTCClient, { events as clientEvents, transportEvents } from '../web-rtc-client';
import IssueReporter from '../service/IssueReporter';
import Emitter from '../utils/Emitter';
import Wazo from './index';
Expand All @@ -19,7 +19,7 @@ const protocolLogger = IssueReporter.loggerFor('sip');
const protocolDebugMessages = ['Received WebSocket text message:', 'Sending WebSocket message:'];

export class Phone extends Emitter {
client: WazoWebRTCClient;
client: WebRTCClient;

phone: WebRTCPhone | null | undefined;

Expand Down Expand Up @@ -186,7 +186,7 @@ export class Phone extends Emitter {
options.log.connector = this._logConnector;
}

this.client = new WazoWebRTCClient({
this.client = new WebRTCClient({
host,
port: typeof port === 'string' ? parseInt(port, 10) : port,
displayName,
Expand Down

0 comments on commit e350c0e

Please sign in to comment.