Websockets exist and they're easy to implement. Other sockets too, there's a user who's always making threads about winsockets, you could contact him, he might have some insights for you.
And I'm pretty sure sockets are not unique for this task. Other measures could be used with enough creativity, maybe making the complement insert a record every certain interval, and you could monitor if it's open if there's recent records inserted.