Hi,

1) it depends on the client library in use. As an example, if you're using the JavaScript client library you would do

lightstreamerClientInstance.connectionDetails.setUser("user");...