Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advice about where put a code to websocket
#6
My mistake. I'm focused on 17. 17 can persist objects as you wish.

14/15 reload the whole page when pages change. Other than using a frame which would be a bit messy, I can't see a way to persist a JS object. You'll have to reconnect it each time I think if you change pages.

If you are only making updates to a page, you can use AJAX updates which will preserve your websocket object.
Reply


Messages In This Thread
RE: Advice about where put a code to websocket - by kudzu - 07-12-2019, 03:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)