Message lost, what happens?

36 views
Skip to first unread message

Nicolas

unread,
Sep 29, 2010, 12:32:03 PM9/29/10
to APE Project
Hi,

Basic question.

A user is connected to an APE chat.

A new message is sent to the user client, but fails to arrive, for
whatever reason.

What happens?

Is there some kind of "acknowledgement of receipt" that will say to
the server that the message has been well received (in this case no
acknowledgment and then the server sends the message again)?

I guess that there is no such thing, but I just want to make sure. So
this "acknowledgement of receipt" has to be written by us, if we
really want to make sure that no message is missing.

Thx in advance for your help.

Nicolas.

Ruben Decleyn

unread,
Sep 30, 2010, 9:49:04 PM9/30/10
to ape-p...@googlegroups.com
Do you mean like a callback ?
or rather like a handshake ? 

because the callback is already there, look it up in the docs
the handshake, well, if you send a raw and there is nothing happening onRaw, well then it simply didn't arrive..
or do you need to know the exact error of what went wrong ?


Kind Regards.
Ruben Decleyn



--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Catel Anthony

unread,
Sep 30, 2010, 9:50:16 PM9/30/10
to ape-p...@googlegroups.com
Indeed, there is no event on the server-side to handle lost messages (i.e. timeout-ed users).

(sorry)

Nicolas

unread,
Oct 13, 2010, 4:51:24 PM10/13/10
to APE Project
Thx for the answers.

On Sep 30, 6:50 pm, Catel Anthony <a.ca...@weelya.com> wrote:
>   Indeed, there is no event on the server-side to handle lost messages
> (i.e. timeout-ed users).
>
> (sorry)
>
> Le 01/10/2010 03:49, Ruben Decleyn a �crit :
>
> > Do you mean like a callback ?
> > or rather like a handshake ?
>
> > because the callback is already there, look it up in the docs
> > the handshake, well, if you send a raw and there is nothing happening
> > onRaw, well then it simply didn't arrive..
> > or do you need to know the exact error of what went wrong ?
>
> > Kind Regards.
> > Ruben Decleyn
>
> > On Wed, Sep 29, 2010 at 6:32 PM, Nicolas <ioa.guib...@googlemail.com
> > <mailto:ioa.guib...@googlemail.com>> wrote:
>
> >     Hi,
>
> >     Basic question.
>
> >     A user is connected to an APE chat.
>
> >     A new message is sent to the user client, but fails to arrive, for
> >     whatever reason.
>
> >     What happens?
>
> >     Is there some kind of "acknowledgement of receipt" that will say to
> >     the server that the message has been well received (in this case no
> >     acknowledgment and then the server sends the message again)?
>
> >     I guess that there is no such thing, but I just want to make sure. So
> >     this "acknowledgement of receipt" has to be written by us, if we
> >     really want to make sure that no message is missing.
>
> >     Thx in advance for your help.
>
> >     Nicolas.
>
> >     --
> >     You received this message because you are subscribed to the Google
> >     Groups "APE Project" group.
> >     To post to this group, send email to ape-p...@googlegroups.com
> >     <mailto:ape-p...@googlegroups.com>
> >     To unsubscribe from this group, send email to
> >     ape-project...@googlegroups.com
> >     <mailto:ape-project%2Bunsu...@googlegroups.com>

antonio

unread,
Jun 18, 2012, 5:52:22 AM6/18/12
to ape-p...@googlegroups.com
Bonjour,
votre site est vraiment super.
Je crée pour un client un quiz multijoueur pour leur intranet.
J'utilise APE et tout fonctionne assez bien sauf que j'ai le problème qu'un utilisateur ne confirme pas la bonne réception d'un message ce qui bloque le déroulement de mon jeu en cas d'erreur.
J'ai vu que vous utilisiez une classe ACK_RECEIPT qui à l'air de vous permettre d'accomplir cela.
pourriez vous m'expliquer un peu comment celà fonctionne et ce que vous avez dû mettre coté server afin d'accomplir celà. 

il me reste deux semaine avant le lancement de mon jeux et je vous avoue être un peu désemparer

je vous remercie d'avance.
> >     <mailto:ape-project@googlegroups.com>
> >     To unsubscribe from this group, send email to
> >     ape-project+unsubscribe@googlegroups.com
> >     <mailto:ape-project%2Bunsu...@googlegroups.com>
> >     For more options, visit this group at
> >    http://groups.google.com/group/ape-project?hl=en
> >     ---
> >     APE Project (Ajax Push Engine)
> >     Official website :http://www.ape-project.org/
> >     Git Hub :http://github.com/APE-Project/
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "APE Project" group.
> > To post to this group, send email to ape-p...@googlegroups.com
> > To unsubscribe from this group, send email to
> > ape-project+unsubscribe@googlegroups.com

Nicolas Guibert

unread,
Jun 18, 2012, 6:08:08 AM6/18/12
to ape-p...@googlegroups.com
Bonjour,

J'ai posté un truc à ce sujet il y a 2 ou 3 semaines. Tu l'as vu ?

Amicalement,



2012/6/18 antonio <totor...@gmail.com>

antonio Munoz

unread,
Jun 18, 2012, 6:19:29 AM6/18/12
to ape-p...@googlegroups.com

Non pourtant j ai regardé tout vos post.
Je vais reregardé

younes0

unread,
Nov 11, 2012, 5:15:20 PM11/11/12
to ape-p...@googlegroups.com, ioa.g...@googlemail.com
Did you manage to hack around this ?
Share your ideas please.

I need to be sure that UserB gets UserA message even if UserB didn't get the push event (while refreshing the page for example) ?

One idea would consist in a server side (php) solution :
1) UserA stores a value in database and pushes to UserB
2) UserB doesn't get the Push while loading a new page
3) At page loading, UserB would then compare this database value with the previous value stored in Session
3) Value differs: the session Value is replaced by the database value

a.c...@weelya.com

unread,
Nov 12, 2012, 11:00:12 AM11/12/12
to ape-p...@googlegroups.com
Messages are not lost as long as the session is active (even during a
page refresh).
The server send unseen messages when the user open the TCP connection.
By default the session stay active for 45sec.
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to ape-p...@googlegroups.com
> To unsubscribe from this group, send email to
> ape-project...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en [1]
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/ [2]
> Git Hub : http://github.com/APE-Project/ [3]
>
>
> Links:
> ------
> [1] http://groups.google.com/group/ape-project?hl=en
> [2] http://www.ape-project.org/
> [3] http://github.com/APE-Project/

younes0

unread,
Nov 12, 2012, 12:31:07 PM11/12/12
to ape-p...@googlegroups.com
I did some tests, that's true... Awesome!

Since UserB was getting the pushed growl notification right before refreshing the page and did not not see it, I thought he didn't get the message...

Now I need to make those growl notifications persistent accross pages loading...

Pablo Tejada

unread,
Nov 12, 2012, 2:05:43 PM11/12/12
to ape-p...@googlegroups.com

Is there any way we can access the message queue for a user? Does it resides on the user object?
Maybe in an event like "deluser" we can gather the user's unsent messages and save them in a database for later delivery...

On Nov 12, 2012 10:53 AM, <a.c...@weelya.com> wrote:
Messages are not lost as long as the session is active (even during a page refresh).
The server send unseen messages when the user open the TCP connection.
By default the session stay active for 45sec.


Le 2012-11-11 23:15, younes0 a écrit :
Did you manage to hack around this ?
Share your ideas please.

I need to be sure that UserB gets UserA message even if UserB didn't
get the push event (while refreshing the page for example) ?

One idea would consist in a server side (php) solution :
1) UserA stores a value in database and pushes to UserB
2) UserB doesn't get the Push while loading a new page
3) At page loading, UserB would then compare this database value with
the previous value stored in Session
3) Value differs: the session Value is replaced by the database value

 --
 You received this message because you are subscribed to the Google
 Groups "APE Project" group.
 To post to this group, send email to ape-p...@googlegroups.com
 To unsubscribe from this group, send email to

 For more options, visit this group at
 http://groups.google.com/group/ape-project?hl=en [1]
 ---
 APE Project (Ajax Push Engine)
 Official website : http://www.ape-project.org/ [2]
 Git Hub : http://github.com/APE-Project/ [3]


Links:
------
[1] http://groups.google.com/group/ape-project?hl=en
[2] http://www.ape-project.org/
[3] http://github.com/APE-Project/
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Reply all
Reply to author
Forward
0 new messages