Skip to content

Commit

Permalink
fix(robot-server): websockets has a 1mb upload limit. Use wsproto ins…
Browse files Browse the repository at this point in the history
…tead. (#6229)

closes #6159
  • Loading branch information
amitlissack authored Jul 29, 2020
1 parent fad45f6 commit c23e980
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 137 deletions.
1 change: 1 addition & 0 deletions robot-server/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ config BR2_PACKAGE_PYTHON_OPENTRONS_ROBOT_SERVER
select BR2_PACKAGE_PYTHON_UVICORN # runtime
select BR2_PACKAGE_PYTHON_MULTIPART # runtime
select BR2_PACKAGE_PYTHON_DOTENV # runtime
select BR2_PACKAGE_PYTHON_WSPROTO # runtime
help
Opentrons HTTP server. Controls an OT2 robot.

Expand Down
2 changes: 1 addition & 1 deletion robot-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ lint: $(ot_py_sources)
.PHONY: dev
dev: export OT_ROBOT_SERVER_DOT_ENV_PATH := dev.env
dev:
$(pipenv) run uvicorn "robot_server.service.app:app" --host localhost --port 31950 --reload
$(pipenv) run uvicorn "robot_server.service.app:app" --host localhost --port 31950 --ws wsproto --reload

.PHONY: local-shell
local-shell:
Expand Down
1 change: 1 addition & 0 deletions robot-server/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ fastapi = "==0.54.1"
python-multipart = "==0.0.5"
python-dotenv = "*"
pydantic = "==1.4"
wsproto = "==0.15.0"
Loading

0 comments on commit c23e980

Please sign in to comment.