When i try to integrate using react j, i'm getting websocket error with 502 bad gateway

WebSocket connection to ‘ws://localhost/9.1.0-963f47db665a70b3c7aae60b764ccd15/doc/__1Verifier-Handover_Document.docx1760515880438/c/?shardkey=__1Verifier-Handover_Document.docx1760515880438&EIO=4&transport=websocket’ failed:

Hey @Narendra, :wave:

Thanks for sharing the WebSocket error details — that 502 Bad Gateway on the ws://localhost/... connection is a common hiccup during ONLYOFFICE Docs API integration, often tied to proxy setup or server config. To help us troubleshoot:

  1. Are you using a proxy (e.g., NGINX, Apache)? If so, could you share your config snippet? (Our official guide covers WebSocket handling: Docs Community Proxy — did you base yours on that?)
  2. Does the built-in example (from the Docs API repo) run without errors on your setup? That’ll confirm if it’s integration-specific.
  3. What installation type did you use for ONLYOFFICE Docs (docker, deb/rpm, .exe)?