Bastion sessions have this fantastic feature of keeping the clipboard synced between the remote machine and the accessing machine.
Based on the initial request to access the clipboard by the browser we receive when we open a Bastion session, I can tell that it uses the clipboard API, https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API.
But how does it achieve monitoring of the clipboard? Does it query the clipboard every x seconds to see if the contents have changed? It seems too fast for that to be the case here.