Noyce

Enjoy, be kind, and be well.

  • Musings
  • About

SingalR Initialization and JavaScript

February 09, 2020 by Ben Noyce

Don’t, and I repeat *don’t*, attempt to initialize SingalR within a JQuery $(document).ready(...) block.  Doing this will break the plumbing if a user refreshes (F5) the page; unless of course it’s a hard refresh (ctrl+F5).

Keep it global, keep it happy.  Just saying this as a friend.

Happy coding.

February 09, 2020 /Ben Noyce
  • Newer
  • Older