How to establish a TCP Socket connection from a web browser (client side)?

前端 未结 5 1504
迷失自我
迷失自我 2020-12-01 00:11

I\'ve read about WebSockets but they don\'t seem to be pure \"sockets\", because there is an application layer protocol over them. \"ws:\"

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 01:06

    If you are asking for some data to be pushed from server it is widely termed as COMET or Reverse Ajax.

    Web sockets is still not very popular as there are inherent firewall issues and minimal support yet from popular browsers.

    You can take a look at http://www.ape-project.org/ as this is one of the most popular implementations (but native to unix/linux only for now. For windows they suggest using a virtual box or vmware based implementation)

提交回复
热议问题