Forums Register Login

Share data structure among weboscket sessions

+Pie Number of slices to send: Send
Hi all
I am looking for a way to share data structure among websocket sessions. I am thinking to use static variable?! but what about synchronization feature? also static? Are all this thread safe?





Thanks a lot!

Alex__
Are we home yet? Wait, did we forget the tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 522 times.
Similar Threads
Tomcat 7 is not creating connection for web socket.
Web Socket not working in Tomcat 8.0.32
Java websocket client lost connection
Getting 404 on WebSocket when deploying on my Server
@OnMessage vs. adding a MessageHandler with WebSockets
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:25:02.