Get user during subscription


Not sure if I get what you mean .. you can

access the WAMP session ID of the client on the WampServerProtocol instance for the WAMP connection using the WampServerProtocol's attribute "session_id"

yes, those WAMP session IDs are what you can (optionally) provide to dispatch for eligible and exclude for fine-control over receivers



Am 08.03.2013 22:45, schrieb Gabriel Bassett:

How do you access the client subscribing during subscription? I would like to pass the subscribe handler a variable from the client. If the variable is true, I want the subscribe handler to dispatch the current state back to the client (and only the client). To do that, I assume I need to pass the client in the eligible argument to dispatch.