Skip to content

Commit

Permalink
Return app dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
vardius committed May 23, 2020
1 parent 9df04b4 commit dedbc53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Room {

getParticipantId = (): string => this.participantId;

getEventDispatcher = (): EventDispatcher => this.dispatcher;
getEventDispatcher = (): EventDispatcher => this.appDispatcher;

getConfiguration = (): Configuration => this.configuration;

Expand Down
2 changes: 1 addition & 1 deletion src/app/SocketChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EventDispatcher } from './EventDispatcher';

export class SocketChannel implements Signaling {
private socket: SocketIOClient.Socket;
private dispatcher: EventDispatcher = new EventDispatcher();
private dispatcher: EventDispatcher;

constructor(dispatcher: EventDispatcher , opts?: SocketIOClient.ConnectOpts) {
this.dispatcher = dispatcher;
Expand Down

0 comments on commit dedbc53

Please sign in to comment.