-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Description
Could you please provide an example of how to configure access to WebSockets? For instance, to the following endpoint:
@app.websocket("/ws")
async def websocket_endpoint(websocket: WebSocket):
await websocket.accept()
await websocket.send_text(f"WebSocket client connected")
I could't connect to the endpoint from the client app, getting Error during WebSocket handshake: Unexpected response code: 200. I suppose, either Traefik or Nginx configs should be changed.
n1ckdm and storenth
Metadata
Metadata
Assignees
Labels
No labels