How to push update to user without multiple updates if more than one tab is open?

When a function is run, an update gets pushed to the user, but if the user has 2 or more tabs open, it'll update equal to the number of tabs open.

I'd like the update to only apply once per user regardless of how many connections have have to the server.

any ideas on how to stop/fix this?

I think this is related to sharing a connection in the browser side. With this support, regardless of the number of tabs, a physical connection will be established once per device and notifications from the server will be broadcasted to the tabs. So, the server don't need to consider that.

In fact, I added this support to my library, the portal, but there were some arguments. If you want to implement or enhance the connection sharing from scratch, see my answer to a similar question. However, that is somewhat out of date.