title: Zlib decompress data from websocket
body: <p>I am exploring websocket which is sending data encoded in <code>zlib</code> the parameter of endocing is <code>zlib-stream</code>. I wanted to use <code>zlib</code> library but it seems not to work.</p>
  <pre><code>import zlib
  
  print(zlib.decompress(text.encode()))
  </code></pre>
  <p>It throws me an error
  <code>zlib.error: Error -3 while decompressing data: incorrect header check</code>. It is a discord url<code>wss://gateway.discord.gg/?encoding=json&amp;v=8&amp;compress=zlib-stream</code>
  This is an example ,,binary message'' <code>wp0KLShOhRZ6FibUSIWgpRPGpuCZaCNqpULQIgFLYNIGlt2UFEcGwyQVAgAAAP//</code></p>