christian-raedel / nightlife-rabbit

A WAMP-Router implementation for node.js
34 stars 8 forks source link

Unregister and Unsubscribe when client disconnects #5

Open hugomallet opened 9 years ago

hugomallet commented 9 years ago

Hello,

The problem:

  1. A client registers a procedure "foo"
  2. Client disconnects unexpectedly
  3. Client reconnects
  4. Client tries to registers the procedure "foo"
  5. The error "wamp.error.procedure_already_exists" is raised

Does the removeSession function in the router should also unregister the registered procedures and unsubscribe to subscribed topics?

Thank you, Hugo

solognt commented 9 years ago

Yes I have the same issue. Seems like they solved it in crossbar.io by adding a auto ping functionality. "auto_ping_interval": 1000, "auto_ping_timeout": 2000, "auto_ping_size": 4

Maybe that is an option for nightlife-rabbit too?

See this discussion: https://github.com/crossbario/autobahn-js/issues/127

hugomallet commented 8 years ago

Thanks @francois06

fixed by #7