File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ io.on("connection", (socket) => {
115115
116116 // Handle responses
117117 socket . on ( "response" , ( { id, response } ) => {
118- const requestSenderSockerID = pendingRequests . get ( id ) ;
118+ const requestSenderSocketID = pendingRequests . get ( id ) ;
119119
120120 const requestSenderServiceName = Array . from ( services ) . find (
121121 ( [ serviceName , { socketId, lastHeartbeat } ] ) =>
122- socketId === requestSenderSockerID
122+ socketId === requestSenderSocketID
123123 ) [ 0 ] ;
124124
125125 // Forward the response back to the requesting service
@@ -128,9 +128,9 @@ io.on("connection", (socket) => {
128128 response
129129 ) ;
130130
131- if ( requestSenderSockerID ) {
131+ if ( requestSenderSocketID ) {
132132 // Emit the response only to the requesting client
133- io . to ( requestSenderSockerID ) . emit ( "response" , { id, response } ) ;
133+ io . to ( requestSenderSocketID ) . emit ( "response" , { id, response } ) ;
134134 pendingRequests . delete ( id ) ; // Clean up
135135 } else {
136136 logger . warn ( `No pending request found for ID ${ id } ` ) ;
You can’t perform that action at this time.
0 commit comments