websocket - Pure TCP Socket vs Web Socket for Notification from Web Server to Client Application -
currently have php web application sends notification frontend client(running in browser) via websockets. developing client (desktop application written in c / c++) needs receive notifications web application. scenario(communication between desktop application , web server) better use tcp socket or websockets. advantage of web sockets on tcp in terms of firewall, security, speed , resource conception.
if using tcp socket better should binding , listening (http server or desktop client)
i have referred following questions before posting question
the main difference browsers websocket capable. standard, has better interoperability. has little overhead. if roll own tcp connection, still need frame data, end doing similar. websocket protocol simplistic.
a websocket connection starts http or https, more go through firewalls. , proxy vendors update software websocket friendly, because standard.
Comments
Post a Comment