JKeita
V2EX  ›  问与答

golang websocket 通信疑问

  •  
  •   JKeita · Oct 16, 2021 · 1424 views
    This topic created in 1701 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   ·   2669 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:17 · PVG 13:17 · LAX 22:17 · JFK 01:17
    ♥ Do have faith in what you're doing.