Quantcast
Channel: Active questions tagged consumer - Stack Overflow
Viewing all articles
Browse latest Browse all 87

Django channels reloading or refreshing self.scope['session'] values

$
0
0

I have multiple consumers, and wanted to pass a value from one consumer to the other using self.scope['sessions']. They are both created and initialized at the same time.

After setting and saving (self.scope['sessions'].save()) session value, I am trying to get this session value in 2nd consumer, but the value stored at self.scope in 2nd consumer will still be the value at the time this 2nd consumer was initialized (or connected).

I am looking for a way to refresh or reload the self.scope in 2nd consumer so that I can use the self.scope['sessions'] value from the 1st consumer. thanks.


Viewing all articles
Browse latest Browse all 87

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>