The existing mechanism to maintain the listeners per session works with the help of a .json file. It would be helpful if we can avoid a large number of I/O operations.
TODO:
Implement a concurrent map to store active listeners in memory during the server runtime, reducing the need for constant file I/O operations.
We can declare a concurrent map to hold listeners like so:
The existing mechanism to maintain the listeners per session works with the help of a
.json
file. It would be helpful if we can avoid a large number of I/O operations.TODO:
We can declare a concurrent map to hold listeners like so: