@@ -73,20 +73,12 @@ exports.socketHandlers = (wss) => {
7373 } else {
7474 girls . push ( { socketId : ws . id , user, ws } ) ;
7575 }
76-
77- console . log ( "Joined " , user . email ) ;
78- // Stats will be sent via polling interval
79- // console.log("BOYS:" , boys)
80- // console.log("GIRLS : " , girls)
8176 }
8277
8378 if ( event === "chat_message" ) {
8479 const { roomId, message } = data ;
8580 const room = rooms [ roomId ] ;
8681 if ( ! room || ! room . members . includes ( ws . id ) ) return ;
87-
88- console . log ( message ) ;
89-
9082 room . members . forEach ( ( id ) => {
9183 if ( id !== ws . id ) {
9284 const peer = room . membersDetails . find ( ( m ) => m . socketId === id ) ;
@@ -106,7 +98,6 @@ exports.socketHandlers = (wss) => {
10698 if ( ! room ) return ;
10799
108100 if ( room . responses . find ( ( r ) => r . socketId === ws . id ) ) return ;
109- // console.log(answer)
110101
111102 const isYes = answer . toLowerCase ( ) === "yes" ;
112103 if ( room . isMatch === undefined ) room . isMatch = isYes ;
@@ -129,20 +120,13 @@ exports.socketHandlers = (wss) => {
129120 ) ;
130121
131122 room . membersDetails . forEach ( ( m ) => {
132- console . log ( "CHAT CLOSED FOR " , roomId ) ;
133123 m . ws . send ( JSON . stringify ( { event : "chat_closed" } ) ) ;
134124 } ) ;
135125
136126 clearTimeout ( room . timer ) ;
137127
138- // console.log(payload[0] && payload[1]);
139-
140128 if ( payload [ 0 ] && payload [ 1 ] ) {
141129
142- // console.log('MATCH in Blind-dating')
143- // console.log(payload[0])
144- // console.log(payload[1])
145-
146130 Reply . create ( [
147131 {
148132 senderEmail : payload [ 0 ] ,
@@ -163,8 +147,6 @@ exports.socketHandlers = (wss) => {
163147 "THE SPEED DATING PAIR WHERE NOT UPDATED IN DATABASE DUE TO INSERT FAIL" ,
164148 ) ;
165149 } ) ;
166-
167- // console.log("Updates sent")
168150 }
169151
170152 delete rooms [ roomId ] ;
@@ -221,7 +203,6 @@ exports.socketHandlers = (wss) => {
221203 } ) ;
222204
223205 ws . on ( "close" , ( ) => {
224- console . log ( "DISCONNECTED" ) ;
225206 cleanup ( ws , wss , "partner_disconnected" ) ;
226207 } ) ;
227208 } ) ;
0 commit comments