How to build a chat / messenger app?

Confluence User - 16 Jun, 2018

Hello,

can you give me a hint, how i can build a internal chat / messenger in a app? With live updates?

I would like to have under 1 menue item something like this:

Can i create this over a process?

I also missed live updates of datalists? Like User A submit a new data entry and USER B has the datalist open in the browser, then USER B should not need to request a new page load to see the updated datalist. Instead it should update the datalist for USER B live. That would be also needed for messages. Or a social network stream.

I work with Joget Enterprise.

Thank you! (smile)

forms;datalists;userviews;chat;messenger;social;stream

7


18 Jun, 2018
confluenceUser
confluenceUser

Hi, if you use a process then it would not be practical real-time chat. If you are looking for real-time chat then I would say you need to use some real-time web technologies like XMPP or WebSockets, and put them into a plugin as in Developing Plugins.

20 Jun, 2018
confluenceUser
confluenceUser

Hi, thanks for your answer.

1) Then i need a "not real time solution" with the existing Joget Enterprise tools. No problem if there are 3 seconds delay with a process and/ or data list. Because right now i want these ajax message app ONLY inside of Joget. Not in a messenger outside of Joget. (Reason is: The end user shall use the message app and also other apps inside the mobile browser. On a external xmpp messenger the end user has no access to the other apps.)

2) XMPP: This is a very good long time goal which makes sence when the end user, as example a customer, needs only the chat and one smartphone app, to chat with a company support team. Then he can use any XMPP messenger and can chat with a company support which uses a Joget app - instead of slow email or old school sms. Or another use case: If the chat system shall be integrated also in another software.

For now:

How to reach case 1, a message system inside of Joget with a ajax datalist, maybe a process and little delay?

21 Jun, 2018
confluenceUser
confluenceUser

I do not think a process would be appropriate here as there is no "process" involved, just message data being sent to and fro. I suppose you could implement it simply as a form to store new messages into a db table. Then the messages are displayed in a custom formatted list or html using AJAX polling. Just try searching for AJAX chat sample and there should be many sample implementations for PHP especially but you could swap the backend to joget. I still think it best to build a custom plugin for this, whether for a AJAX polling or real-time implementation.

27 Feb, 2025
confluenceUser
confluenceUser

If you are looking for real-time chat, then using a process wouldn't be practical. Instead, you should use real-time web technologies like MirrorFly, XMPP, or WebSockets and integrate them into a plugin as described in Developing Plugins.https://github.com/mirrorfly

27 Feb, 2025
confluenceUser
confluenceUser

If you are looking for real-time chat, then using a process wouldn't be practical. Instead, you should use real-time web technologies like MirrorFly, XMPP, or WebSockets and integrate them into a plugin as described in Developing Plugins.

27 Feb, 2025
confluenceUser
confluenceUser

If you're looking for a real-time chat solution, using a process-based approach wouldn't be practical. Instead, you should leverage real-time web technologies like WebSockets or XMPP for seamless communication. MirrorFly provides a powerful chat SDK with real-time messaging capabilities, making it easier to integrate these technologies efficiently. You can also implement them as a plugin within your application for a smooth and scalable chat experience.

05 Mar, 2025
confluenceUser
confluenceUser

How many end users will there be? If there are many then trust me polling will not be a good idea. It will kill the database

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print