Qluxzz / avanza

A Python library for the unofficial Avanza API
https://qluxzz.github.io/avanza/
MIT License
85 stars 40 forks source link

Webstocket problem #43

Open jenshaag opened 2 years ago

jenshaag commented 2 years ago

I have this problem then try to use the websocket:

File "....site-packages/websockets/legacy/client.py", line 223, in process_extensions f"Unsupported extension: " websockets.exceptions.NegotiationError: Unsupported extension: name = permessage-deflate, params = []

The exception from permessage-deflate is: "expected server_max_window_bits"

If i check the header from avanza i see:

Sec-WebSocket-Extensions: permessage-deflate

I think "correct" is:

sec-websocket-extensions: permessage-deflate;server_max_window_bits=12

Is this something i can solve?