I am having an issue with the WebSocket API on UXP, specifically on Windows and InDesign version 20.
Any WebSocket I create will remain in the “CONNECTING” state indefinitely and send/receive no data. No entry appears in the Network tab logs either when debugging.
Is anyone else experiencing this issue, or knows of a fix?
I have the domains and protocols listed in the manifest.json as well:
On Windows if your web sockets are using ping with empty message it won’t be sent at all. In web Browsers it usually works. You should check what is the content of ping messages. But maybe your issue could be elsewhere as well.
Unfortunately, it isn’t the case. We cannot send any messages because we are unable to connect to the WebSocket server (onOpen, onClose, onError, onMessage events are never triggered).