JKeita
V2EX  ›  问与答

golang websocket 通信疑问

  •  
  •   JKeita · Oct 16, 2021 · 1469 views
    This topic created in 1767 days ago, the information mentioned may be changed or developed.

    看了下 goim,im,go-fly 等通信库发现发请求走的是 http 协议,而拉请求走的是 websocket ;

    这样分开有什么好处,为什么要这样做,不能全部走 websocket 吗?

    1 replies    2021-10-16 17:30:25 +08:00
    Tianao
        1
    Tianao  
       Oct 16, 2021
    WebSocket 负载均衡、跨站安全这些不好做,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:26 · PVG 06:26 · LAX 15:26 · JFK 18:26
    ♥ Do have faith in what you're doing.