Klaus Kobald
Klaus Kobald
NNuxt
Created by Klaus Kobald on 4/20/2024 in #❓・help
How do I store global data/state in memory on nuxt server?
I have clients connecting via sockets to the nuxt server. I want that all connected clients get pushed live data from a datasource that the server is collecting. So I am storing all connecting peers in another global object - at least I am thinking it was global. But when I tell this object from another process to send/publish data to all the peers, the peer list is always empty. It seems as if that storage object is existing in different scopes. Any thoughts on that?
3 replies