Websocket URL for Nextcloud Talk

Nextcloud version: 24.0.8
Operating system and version: Ubuntu 22.04.2
Apache or nginx version: nginx 1.23.3
PHP version: 8.0.27

I am not able to find the correct url for connecting to the build-in Nextcloud Talk/Spree websocket server.
I have tried with all sorts of variants, but nothing i have tried has shown to be correct. I had a long conversation with ChatGPT on this, and it has given me some answers, but none of them work.

I have tried for example:
wss://[myhost]/ocs/v2.php/apps/spreed/api/v1/chat/[token]/ws
wss://[myhost]/ocs/v2.php/apps/spreed/api/v2/chat/[token]/ws
wss://[myhost]/ocs/v2.php/apps/spreed/api/v3/chat/[token]/ws
wss://[myhost]/apps/spreed/api/socket

Surely it shouldn’t be this hard to just find out what the url to the service is. The official docs are not helpful:
Internal signaling API
Todo”

Hey, if you’re using internal signaling, you don’t need to set any websocket url. That’s only needed when using an external signaling server.
Why do you need that URL?

I need to direct the websocket client to a url.

But if you’re using internal signaling, there’s no websocket.

That explains why the URL is so hard to find :slight_smile:

ChatGPT says:
“You are correct that Nextcloud Talk does include an internal signaling server that uses WebSockets. This is separate from the high-performance backend signaling server.”