简体   繁体   中英

Sending data from Server to Client

I want to send data from server to client when server is updated. Normally client sends a request to server and server response to the client. Is there any way to send data to a specific client directly?

Pls guide me.

You seem to be after what is known as Push Technology :

Push, or server push, describes a style of Internet-based communication where the request for a given transaction is initiated by the publisher or central server. It is contrasted with pull, where the request for the transmission of information is initiated by the receiver or client.

This and this previous SO posts seem to discuss what you are after.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM