Skip to content

Commit

Permalink
fix: logs removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Nov 6, 2024
1 parent f05c7e6 commit 5feced8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/restapi/src/lib/pushstream/PushStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class PushStream extends EventEmitter {
);
resolve();
} else {
console.log('RestAPI::PushStream::s-7');
console.log('RestAPI::PushStream:: not emitting');
}
};

Expand Down Expand Up @@ -333,15 +333,12 @@ export class PushStream extends EventEmitter {
};

if (this.pushChatSocket) {
console.log('RestAPI::PushStream::s-1');
checkAndEmitConnectEvent();
this.pushChatSocket.off(EVENTS.CONNECT);
this.pushChatSocket.on(EVENTS.CONNECT, async () => {
console.log('RestAPI::PushStream::s-2');
isChatSocketConnected = true;
this.chatSocketCount++;
this.chatSocketConnected = true;
console.log('RestAPI::PushStream::s-3');
checkAndEmitConnectEvent();
console.log(
`RestAPI::PushStream::EVENTS.CONNECT::Chat Socket Connected (ID: ${this.pushChatSocket.id})`
Expand All @@ -350,7 +347,6 @@ export class PushStream extends EventEmitter {

this.pushChatSocket.off(EVENTS.DISCONNECT);
this.pushChatSocket.on(EVENTS.DISCONNECT, async () => {
console.log('RestAPI::PushStream::s-4');
console.log(
'RestAPI::PushStream::ChatSocket::Disconnect - Chat socket disconnected.'
);
Expand Down Expand Up @@ -508,11 +504,8 @@ export class PushStream extends EventEmitter {

if (this.pushNotificationSocket) {
checkAndEmitConnectEvent();
console.log('RestAPI::PushStream::s-4.9');
this.pushNotificationSocket.off(EVENTS.CONNECT);
this.pushNotificationSocket.on(EVENTS.CONNECT, async () => {
console.log('RestAPI::PushStream::s-5');

console.log(
`RestAPI::PushStream::NotifSocket::Connect - Notification Socket Connected (ID: ${this.pushNotificationSocket.id})`
);
Expand All @@ -524,8 +517,6 @@ export class PushStream extends EventEmitter {

this.pushNotificationSocket.off(EVENTS.DISCONNECT);
this.pushNotificationSocket.on(EVENTS.DISCONNECT, async () => {
console.log('RestAPI::PushStream::s-6');

console.log(
'RestAPI::PushStream::NotifSocket::Disconnect - Notification socket disconnected.'
);
Expand Down

0 comments on commit 5feced8

Please sign in to comment.