Currently we have PHP Web Application which sends notification to the FrontEnd Client(running in the Browser) via Websockets. Now we are developing another client (Desktop application written in C / C++) which also needs to receive notifications from the Web Application. For this scenario(communication between Desktop Application and Web Server) which is better to use TCP Socket or WebSockets. What could be the Advantage of Web Sockets over TCP in terms of Firewall, Security, speed and resource conception.
If using TCP Socket is better then who should be binding and listening (HTTP Server or the Desktop Client)
I have referred the following questions before posting my question