title: Worklight method for checking connection
body: <p>The project im working on, they would like active server connection detection before each call.</p>
  
  <p>Im trying to find out if its better to use:
      WL.Device.getNetworkInfo:isNetworkConnected 
  or
       WL.Client.connect</p>
  
  <p>I know that getNetworkInfo only checks if the phone has contectivity to the net, while wl.client.connect will actually connect to the server.  Im just afraid that wl.client.connect will be an expensive call to make before every invokeProcedure call.  Is there a better way to check for connectivity before the invokeProcedure call?</p>