File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1209,22 +1209,24 @@ ${await this.suggestRule(request)}`
1209
1209
1210
1210
if ( type === 'raw' ) {
1211
1211
socket . on ( 'data' , ( data ) => {
1212
+ const eventTimestamp = now ( ) ;
1212
1213
setImmediate ( ( ) => {
1213
1214
this . eventEmitter . emit ( 'raw-passthrough-data' , {
1214
1215
id : eventData . id ,
1215
1216
direction : 'received' ,
1216
1217
content : data ,
1217
- eventTimestamp : now ( )
1218
+ eventTimestamp
1218
1219
} satisfies RawPassthroughDataEvent ) ;
1219
1220
} ) ;
1220
1221
} ) ;
1221
1222
upstreamSocket . on ( 'data' , ( data ) => {
1223
+ const eventTimestamp = now ( ) ;
1222
1224
setImmediate ( ( ) => {
1223
1225
this . eventEmitter . emit ( 'raw-passthrough-data' , {
1224
1226
id : eventData . id ,
1225
1227
direction : 'sent' ,
1226
1228
content : data ,
1227
- eventTimestamp : now ( )
1229
+ eventTimestamp
1228
1230
} satisfies RawPassthroughDataEvent ) ;
1229
1231
} ) ;
1230
1232
} ) ;
You can’t perform that action at this time.
0 commit comments