1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Receivers: Fix listener map session tracking

This commit is contained in:
Michael Hollister 2025-05-01 14:01:37 -05:00
parent 2791357ba3
commit e8be1a5735
2 changed files with 4 additions and 0 deletions

View file

@ -88,6 +88,8 @@ export class TcpListenerService {
if (index != -1) {
this.sessions.splice(index, 1);
}
this.sessionMap.delete(session.sessionId);
this.emitter.emit('disconnect', { sessionId: session.sessionId, type: 'tcp', data: { address: socket.remoteAddress, port: socket.remotePort }});
});

View file

@ -93,6 +93,8 @@ export class WebSocketListenerService {
if (index != -1) {
this.sessions.splice(index, 1);
}
this.sessionMap.delete(session.sessionId);
this.emitter.emit('disconnect', { sessionId: session.sessionId, type: 'ws', data: { url: socket.url }});
});