AppFlowy-IO / AppFlowy-Cloud

AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
GNU Affero General Public License v3.0
982 stars 207 forks source link

add minimum client version validation in websocket connection establishment #750

Closed Horusiath closed 1 month ago

Horusiath commented 1 month ago

This PR adds minimal client version verification when establishing WS connection. It's configurable via APPFLOWY_WEBSOCKET_CLIENT_MIN_VERSION env var (defaults to 0.5.0).

khorshuheng commented 1 month ago

Client version older than 0.5.0 is still using the other endpoint: https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/src/api/ws.rs#L40