Jump to content


Photo

How to implement chat with UniGui?


  • Please log in to reply
5 replies to this topic

#1 maxpetruk

maxpetruk

    Member

  • Members
  • PipPip
  • 21 posts

Posted 03 December 2012 - 08:06 PM

In case with VCL, I will use the database events, when table has update, the database sends messages Event with the parameter target (get all the customers, and updated those with a matched parameter, such as the client's unique identifier)

If such an application uses a n-tier architecture, as in my case, access to middleware, this way there is no problem, but when it starts HTTP protocol problem here because it is one-directional.

I know there are various tricks to implement some model of bi-directional communication server to the client:
long polling, commet, reverse ajax - (can be read on Wikipedia)
and there is a new technology as part of the standard HTML5 -websockets which apparently does provide the mechanism of communication.
Even there are components for Delphi. How to implement it with UniGui, I asked the question but unfortunately no answer it:
http://forums.unigui...-server-client/

I hope there will be people who still will clarify this important topic
  • 0

#2 Cristiano Testai

Cristiano Testai

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 361 posts
  • LocationBrazil

Posted 04 December 2012 - 01:25 PM

In case with VCL, I will use the database events, when table has update, the database sends messages Event with the parameter target (get all the customers, and updated those with a matched parameter, such as the client's unique identifier)

If such an application uses a n-tier architecture, as in my case, access to middleware, this way there is no problem, but when it starts HTTP protocol problem here because it is one-directional.

I know there are various tricks to implement some model of bi-directional communication server to the client:
long polling, commet, reverse ajax - (can be read on Wikipedia)
and there is a new technology as part of the standard HTML5 -websockets which apparently does provide the mechanism of communication.
Even there are components for Delphi. How to implement it with UniGui, I asked the question but unfortunately no answer it:
http://forums.unigui...-server-client/

I hope there will be people who still will clarify this important topic


Hi,

I work with chat in my project using a combination of Datasnap and UniGui.
First, see the chat demo that comes with delphi using Datasnap.

Then you need to adapt your need with Unigui to the client side.

This week I'm very busy, but I'll try better detail as I do.
  • 0

#3 maxpetruk

maxpetruk

    Member

  • Members
  • PipPip
  • 21 posts

Posted 06 December 2012 - 07:40 PM

Hi,

I work with chat in my project using a combination of Datasnap and UniGui.
First, see the chat demo that comes with delphi using Datasnap.

Then you need to adapt your need with Unigui to the client side.

This week I'm very busy, but I'll try better detail as I do.



Ок, Thanks for responce in anyway)
  • 0

#4 eliasipj

eliasipj

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 April 2016 - 01:26 PM

Any news about this topic?


  • 0

#5 Mauri

Mauri

    Member

  • uniGUI Subscriber
  • PipPip
  • 44 posts

Posted 10 January 2018 - 04:33 PM

I need to implement this chat feature in the system and would like to know if anyone could implement this using UNIGUI? Any suggestion is welcome!


  • 0

#6 itognet

itognet

    Active Member

  • Members
  • PipPipPip
  • 72 posts

Posted 15 January 2018 - 04:03 PM

you can implement a chatclient, https://www.tawk.to/in about 2 minutes


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users