Robot Server: Remove wsproto workaround #8266
Labels
chore
Robot Tech Debt
For review in robot guild meetings
robot-svcs
Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience).
Overview
In #6229, we switched our websockets library from the uvicorn default of websockets to wsproto, because uvicorn did not allow configuration of websocket's default 1 MB message size, whereas wsproto has no maximum message size. JSON protocols are often larger than 1 MB, so the hardcoded message limit was untenable. An unlimited message size, however, isn't great either!
As of uvicorn v0.14, the message limit for websockets has been made configurable and set to a default of 16 MB. Now that #8228 has upgraded uvicorn to v0.14, we should remove our wsproto workaround.
Advantages of websockets:
Acceptance criteria
The text was updated successfully, but these errors were encountered: