Will html5 websockets be crippled by firewalls?

前端 未结 3 1744
無奈伤痛
無奈伤痛 2021-02-05 01:13

I\'m extremely excited about html5\'s websockets spec but I have a concern.

These days everyone is operating off of some network, with routers (wired/wireless) that have

相关标签:
3条回答
  • 2021-02-05 01:31

    Since firewalls typically simply enforce the rules for inbound traffic rejection and outbound traffic routing (usually through the proxy server), there usually are no specific WebSocket traffic-related firewall concerns.

    Proxy servers (and to some extent, certain load balancing routers as well) are a different matter though (See Why don't current websocket client implementations support proxies?)

    0 讨论(0)
  • 2021-02-05 01:32

    I'm not an expert (so please check to confirm) but I believe there will be an UPGRADE mechanism where a regular HTTP connection can be made, then upgraded to a WebSocket, so no existing firewall rules interfere unless they are doing aggressive application level packet inspection. Connections are still initiated by the browser.

    0 讨论(0)
  • 2021-02-05 01:40

    HTML 5 WebSockets don't require port forwarding. Connections continue to be established from the client, but the client and server asymmetry disappears once the connection is established. WebSockets also punch through proxies by using the same CONNECT mechanism that HTTPS uses today.

    0 讨论(0)
提交回复
热议问题