Persistent connection with client

后端 未结 5 1433
轻奢々
轻奢々 2021-02-08 06:10

Is there a general way to implement part of an application with JavaScript and supplying a persistent connection to a server? I need the server to be able to push data to the cl

5条回答
  •  花落未央
    2021-02-08 06:46

    With HTTP, the connection has to start from the client. But there are techniques available for having the server hold the connection open and flush data as needed.

    These are generally considered to be Comet or HTTP Streaming architectures.

提交回复
热议问题