Skip to content

Commit

Permalink
Force websocket vs polling
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenFiotto-Kaufman committed Nov 30, 2023
1 parent 4c74345 commit e895eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnsight/contexts/Runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def run_server(self):
def blocking_request(self, request: pydantics.RequestModel):
# Create a socketio connection to the server.
sio = socketio.Client()
sio.connect(f"wss://{CONFIG.API.HOST}")
sio.connect(f"ws://{CONFIG.API.HOST}", transports=['websocket'])

# Called when receiving a response from the server.
@sio.on("blocking_response")
Expand Down

0 comments on commit e895eb2

Please sign in to comment.