title: Is there a way to use promises when dealing with notifications via websocket?
body: <p>Instead of registering my data to a callbacks array. I would like to define some promises. When notification comes from server it will <em>resolve</em> the promise.</p>
  
  <p>I wrote <em>resolve</em>, but in fact promise will never be resolved, since we may have further notifications for same data.</p>
  
  <p>Maybe right word is notify?
  Can I use promise's notify for that behavior?</p>