|
@@ -76,7 +76,7 @@ export class SocketService {
|
|
|
// check if client exists
|
|
|
let clientObj = this.connectedClients.find(obj => obj.clientName === msg.data.clientName)
|
|
|
if (clientObj) {
|
|
|
- // clientInfo = clientObj
|
|
|
+ clientInfo = clientObj
|
|
|
console.log('Existing client found')
|
|
|
// but also update socketId
|
|
|
clientObj.id = socket.id
|
|
@@ -88,7 +88,6 @@ export class SocketService {
|
|
|
updatedId: socket.id
|
|
|
})
|
|
|
|
|
|
- socket.emit('notification', `Hello from server. You have been assigned ${socket.id}`);
|
|
|
// resume operation Release them buffer
|
|
|
/* local client isOnline need not be mutated, since this is a new connection. However the previous intance of client Connection State
|
|
|
inside the retransmission needs to be updated to release the buffered values.*/
|