Windows InDesign version 20 WebSocket not connecting

Hi there,

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:

"requiredPermissions": {
  "launchProcess": {
    "schemes": ["http", "https", "wss"],
  },
  "network": {
    "domains": ["mydomain.com"]
  }
}

I have tried the following variants of “domains” too:

"domains": ["wss://mydomain.com"]
"domains": "all"

The WebSockets work on Mac InDesign 20, Windows Photoshop, and previous versions of Windows InDesign.

1 Like

We encountered the same problem.

Does someone have an update?

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).

I do not see any activities.
Any updates?

We have the same issue. WebSockets work on Mac InDesign, Photoshop and Windows Photoshop but not Windows InDesign. Socket is never connected.

This is the second mayor bug we are encountering in the InDesign UXP plugin framework. :slightly_frowning_face:

I created a bug report for this because it is preventing our windows users from using the InDesign plugin. Please all vote :grin:

1 Like