Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(robot-server): Use wsproto instead of websockets #6229

Merged
merged 1 commit into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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