How can i use server sent events with WCF?
To be specific:
No you cannot.
What you are asking for is not possible.
You can send data to WCF clients via callbacks over duplex bindings, but this is not receivable from javascript, only WCF clients.
Or you can send data to client side javascript code using SignalR, which is an implementation of server sent events.
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.