Please advise, is there any way to implement Delphi client to support "Server-Sent events" technology?
Please advise, is there any way to implement Delphi client to support "Server-Sent events" technology?
I believe Delphi has the ability to support it, however I can't find the way out of the box :)
I believe Delphi has the ability to support it, however I can't find the way out of the box :)
https://en.wikipedia.org/wiki/Server-sent_events, I have a Server with SSE and need Delphi client
ReplyDeleteOut of the box, you may use DataSnap callbacks. http://edn.embarcadero.com/article/41374
ReplyDeleteBut AFAIK it requires a TCP connection, and certainly configure your firewall.
You may consider using WebSockets, as an alternative. See e.g. what our Open Source framework offers: http://synopse.info/files/html/Synopse%20mORMot%20Framework%20SAD%201.18.html#TITL_149
You could find a simple chat demo using a HTML5 client at https://github.com/synopse/mORMot/tree/master/SQLite3/Samples/31%20-%20WebSockets
Thank you all.
ReplyDeleteSorry, but I meant about SSE not WebSockets :) and I am looking for Delphi client examples (not Server code). Can you share the real example of interation Delphi + Server (SSE) ?