Creating only one WS connection to pusher from admin
Also: migration to Typescript 4.5 and µWebsockets 1.20.4
This commit is contained in:
committed by
Alexis Faizeau
parent
4875a8fed9
commit
4cff230256
@@ -132,6 +132,12 @@ export class SocketManager implements ZoneEventListener {
|
||||
const message = new AdminPusherToBackMessage();
|
||||
message.setSubscribetoroom(roomId);
|
||||
|
||||
console.log(
|
||||
`Admin socket handle room ${roomId} connections for a client on ${Buffer.from(
|
||||
client.getRemoteAddressAsText()
|
||||
).toString()}`
|
||||
);
|
||||
|
||||
adminRoomStream.write(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user