-
-
Notifications
You must be signed in to change notification settings - Fork 554
Description
greetings and thanks for the great library !
I'd have a question for you on what you think would be the best way to proceed for us in uvicorn : we recently unpinned websockets from websockets==8.*
to websockets>=8.*
which went flawlessly in the CI.
However we have a pending PR that aims at being stricter (basically transform warnings into failures) and in that context we'd have to do
- websockets.handshake.check_request(headers)
+ websockets.legacy.handshake.check_request(headers)
So if I understand correctly the 9.0 changelog wording, in particular:
Despite the name
this fix is correct in the sense it is still supported and will be until v10 happens, it this the right way to understand it ? In which case we should probably do websockets>=8.*, <10
?
Second question, I'm unsure about the following:
The framing, handshake, headers, http, and uri modules in the websockets package are deprecated. These modules provided low-level APIs for reuse by other WebSocket implementations, but that never happened. Keeping these APIs public makes it more difficult to improve websockets for no actual benefit.
so the deprecation warning we have on websockets.handshake.check_request(headers)
is very clear when reading the above statement, this said what would be an "equivalent" way to proceed on 9.* without relying on those "not public" APIs ?
merci !