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 :)

Comments

  1. Out of the box, you may use DataSnap callbacks. http://edn.embarcadero.com/article/41374
    But 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

    ReplyDelete
  2. Thank you all.
    Sorry, 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) ?

    ReplyDelete

Post a Comment