Skip to content

Commit dcc02d4

Browse files
committed
Update index.ts
1 parent b35f386 commit dcc02d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,8 @@ async function runSSECloudServer() {
13751375

13761376
//todo: validate api key, close if invalid
13771377
const compositeKey = `${apiKey}-${transport.sessionId}`;
1378+
console.log('transport.sessionId', transport.sessionId);
1379+
console.log('compositeKey', compositeKey);
13781380
transports[compositeKey] = transport;
13791381
res.on('close', () => {
13801382
delete transports[compositeKey];
@@ -1407,7 +1409,9 @@ async function runSSECloudServer() {
14071409
console.log('enrichedBody', enrichedBody);
14081410

14091411
const sessionId = req.query.sessionId as string;
1412+
console.log('sessionId', sessionId);
14101413
const compositeKey = `${apiKey}-${sessionId}`;
1414+
console.log('compositeKey', compositeKey);
14111415
const transport = transports[compositeKey];
14121416
if (transport) {
14131417
await transport.handlePostMessage(req, res, enrichedBody);

0 commit comments

Comments
 (0)