title: Is there a javascript client-side library for queuing ajax requests with storage support
body: <p>I'm looking for a javascript client side lib to handle an ajax or websocket requests queue like this : </p>
  
  <ul>
  <li>directly transmit request when user is online and the server is up</li>
  <li>store requests when user is offline or server is down using local storage</li>
  <li>send stored requests when user is online and server is back online</li>
  </ul>
  
  <p>Ideally : </p>
  
  <ul>
  <li>without jquery</li>
  <li>I'm also looking for a serverside component to go along</li>
  </ul>
  
  <p>I can't find anything like this. Should I build one myself using localstorage, window.navigator.onLine and socket.io for instance or is there already some lib for that purpose ?</p>
  
  <p>Thanks.</p>