Well karthik655,
So what you need to do is to retrieve the login information (username, password or session-id) originated by your web/application server and set them on the LightstreamerClient.connectionDetails object before calling the LightstreamerClient.connect() method (please refer to setUser() and setPassword() here:
http://www.lightstreamer.com/latest/Lightstreamer_Allegro-Presto-Vivace_5_0_Colosseo/Lightstreamer/DOCS-SDKs/sdk_client_javascript/doc/API-reference/ConnectionDetails.html).
Your MetaData Adapter receives this information in the notifyUser call where you can manage issues related to authentication, authorization, and entitlement.