Problem with Session Metaevents - > wamp.session.on_leave

#1

Hi, I got a simple problem

I have a client made on Autobanh.js And Im trying to catch session status.

For example I have subscribed a handler for the event “wamp.session.on_leave”

And from my client I try to disconnect using

connection.close();

``

But Its seems to be not working.

However my handler is triggered if I cut internet connection of my client directly

Why ?

Regards

0 Likes

#2

there is a difference: in one case the client is disconnecting actively, and that happens on the server, where the connection of the client is first disconnected and that triggers the metaevent - but only after the client disconnecting already was closed and hence does not receive the session metaevent

···

Sent from Mobile (Google Nexus 5)

Am 22.01.2016 9:41 nachm. schrieb “Javier Girón” javie...@gmail.com:

Hi, I got a simple problem

I have a client made on Autobanh.js And Im trying to catch session status.

For example I have subscribed a handler for the event “wamp.session.on_leave”

And from my client I try to disconnect using

connection.close();

``

But Its seems to be not working.

However my handler is triggered if I cut internet connection of my client directly

Why ?

Regards

You received this message because you are subscribed to the Google Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com.

To post to this group, send email to cross...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/c07e4002-e888-4f48-9003-335843d3e2e7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Hi Thank you so much Tobias,

But then, Which should to be the proper way to disconnect the client to trigger the session meta event?

Regards

···

El viernes, 22 de enero de 2016, 15:41:34 (UTC-5), Javier Girón escribió:

Hi, I got a simple problem

I have a client made on Autobanh.js And Im trying to catch session status.

For example I have subscribed a handler for the event “wamp.session.on_leave”

And from my client I try to disconnect using

connection.close();

``

But Its seems to be not working.

However my handler is triggered if I cut internet connection of my client directly

Why ?

Regards

0 Likes