I would like to add the user's Id say to a HashMap filled with those users that are connected.

So in flex I'd like to call:

Code:
conn.connect("rtmp://" + SERVER + "/app_1/" + instanceName, userId);
I'm not sure what to do next. I assume the userId should not be added in onConnect(), in case the connection fails. If so, how would I add it in onConnectAccept(), which only takes the IClient as a parameter?