title: How to use ionic 2 RC 4 native Network
body: <p>I am following the ionic 2 docs on how to use Network which is a cordova plugin network information </p>
  
  <pre><code> import { Network } from 'ionic-native';
  
   // watch network for a disconnect
  
  let disconnectSubscription = Network.onDisconnect().subscribe(() =&gt; {
   console.log('network was disconnected :-(');
   });
  
  // stop disconnect watch
  
      disconnectSubscription.unsubscribe();
  
  
  
    let connectSubscription = Network.onConnect().subscribe(() =&gt; {
         console.log('network connected!'); 
  
       setTimeout(() =&gt; {
         if (Network.type === 'wifi') {
          console.log('we got a wifi connection, woohoo!');
         }
       }, 3000);
     });
  
   // stop connect watch
   connectSubscription.unsubscribe();
  </code></pre>
  
  <p>How to use this in context of retrieving data from a server-side (e.g. when subscribing service.ts) so it keeps watching whether there is connection or not! can some provide a piece of code on how to utilize this! I'm not sure what is stored in <code>disconnectSubscription</code> so that I can set a condition statement to log the result (this is supposedly when I'm watching the network when retrieving data) and when should I <code>unsubscribe</code> the watch!</p>
  
  <p>Also, there is an error on <code>if (Network.type === 'wifi')</code> 
   property <code>type</code> does not exist of typeof <code>Network</code></p>