You have 2 options:
- Pass query string parameters (if the java client supports it) as part of the connection information. That way you can pass the list of groups via the query string to join. If you do this then you can use request.QueryString to access the query string and do whatever processing you need.
- After connecting you can send a message to the server and handle OnReceived and pass a list of groups.
Either one works.