hello dear,
I encountered a problem. Friends can help,
The problem is: The socket web server address does not connect to the directory
example: “wss://example.com/echo/websocket”
error is : Could not negotiate connection: Could not handle the response code 301 returned by the server
That’s because the other programs detect the redirect and make a new request to the new url. That’s what you will need to do. Have you tried what people have suggested?
When I ran a test using the URL you provided, I get a 301 redirect with no forwarding URL. Have you checked the documentation for the API you are attempting to use? I couldn’t find any.
See, you can try any program that connects with the web socket, it connects without any delay, but it does not connect with the web socket class Websocket_MTC You can also try with ws/wss