Neopusher with database - Forum

Forum Navigation
You need to log in to create posts and topics.

Neopusher with database

Hi @luishp, in thé sample 3 neocms, you get all messages for each new messages. For my app I would like to add only thé new messages into thé chat container because I want to keep at least 1000 messages. I tried to use getobjecthtml and setobjecthtml but this multiply all thé existing messages. I suppose there is a conflict with the use of ng-repeat into thé chat container.
Do you have another solution?

@phil78 the problem here is how to know which one is/are the last message(s) for each user. As it's not a real time solution as neoPusher is you don't know what message to get from the database and when to get it. That's the reason a shoutbox is not a chat system.
Not sure if this answers your question.

Regards.

Hi @luishp Really I use neoPusher. I finally abandoned the use of ng_repeat and made a loop for the display of old messages which also allows me to change the background color according to the sender. So I am able to use getobjecthtml and setobjecthtml for the new messages.
I have 2 more questions :
1 Is it possible to send notification to the device which receive the message ?
2 How to manage the display of an attachment ?

Regards

I have 2 more questions :
1 Is it possible to send notification to the device which receive the message ?
2 How to manage the display of an attachment ?

Hi @phil78.

As far as I know, when you send a message to an channel event, all channel subscribers get all events messages.
I didn't know an attachment could be included on a message. I think message limit is 50Kb.
I think you should ask those questions on Pusher. Please let me know if you succeed.

Regards.

@luishp Yes you are right messages are limited to 10kb, I give up the idea of attachments.
For the notification, can you take a look on pusher website, i think we have tu use beams.
Could you write the corresponding functions like you did for pusher?

Could you write the corresponding functions like you did for pusher?

@phil78 if I have time enough will try to study the possibility.

javadrajabihakami and Phil78 have reacted to this post.
javadrajabihakamiPhil78

Hi luishp When you will have the time to study beams, can you also propose the private-encrypted- channels option for pusher which requires additional facilities.
Thanks in advance

Hi @phil78, right now I'm very busy with other projects. When I work on other projects using VisualNEO Web I usually detect needs and create new plugins to help solve them. So my professional projects help the development of VisualNEO Web and somehow subsidize it. For example today I have developed a plugin to generate barcodes that I will include in next version. It's not that I have time enough, it's that I have found the necessity.
That's the reason VisualNEO Web don't have a clear development path. Of course, whenever possible, I try to fulfill users wishes too, but can't promise anything regarding a specific petition.

Best regards.

Vadim has reacted to this post.
Vadim

Hi @luihp I understand perfectly and I don't have any requirement in terms of time, you proposed neopusher which is a real plus for my association and it seems interesting to me to give it all its features and especially the security.
Best regards