I am building a notification application
in which every time an event is triggered the associated user gets a notification. I am using localstorage
of NodeJs to store the information of the logged in user. The problem is that when two users are logged in,the localstorage
values are overridden by the new users value.
I need to create multiple instances of NodeJS server
so that every user has its own localStorage
.
For example If two users log in with credentials
{
userName:name1
}
and
{
userName:name2
}
then two separate localStorage should be created one having userName:name1
and one having userName:name2
.
I have tried all the solutions available online but I am unable to create multiple states of NodeJS server.
Thanks in advance