Skip to content

Commit

Permalink
Made the SocketManager constructor private. [Update SocketManager.ts]
Browse files Browse the repository at this point in the history
  • Loading branch information
sagardxd authored Apr 21, 2024
1 parent d4bf9ac commit e34835d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ws/src/SocketManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SocketManager {
private interestedSockets: Map<string, User[]>;
private userRoomMappping: Map<string, string>;

constructor() {
private constructor() {
this.interestedSockets = new Map<string, User[]>();
this.userRoomMappping = new Map<string, string>();
}
Expand Down

0 comments on commit e34835d

Please sign in to comment.