Changed connectionObj.isAuthenticated() to be synchronous. It now returns a boolean. Added synchronous function connectionObj.isAuthenticated() which returns a boolean.