Web sockets server side processing model

后端 未结 4 1392
野性不改
野性不改 2021-02-08 05:42

To implement a server supporting clients using web sockets, do servers keep an open HTTP connection with each client? How can this scale?

What are the \"programming mod

4条回答
  •  广开言路
    2021-02-08 06:09

    Generally speaking, you should expect to use WebSockets with custom server implementations designed to handle the load in a lightweight way. Such servers already exist for long-lived COMET connections and the like.

提交回复
热议问题