04-19-2022 16:35
04-19-2022 16:35
Hi,
I have a local server running on my android device.
I attempted to open a websocket to the address (FTP) within companion/index.js
And I get this error:
Has anyone had any luck at all opening a WebSocket to Localhost to send data?
04-19-2022 16:46
04-19-2022 16:46
Answering my own question...
This works with "wss:" in front of what you are trying to connect to. It labels it as "WebSocket Secure", I believe.
Something like this...
ex: websocket = new WebSocket("wss://0.0.0.0:2221");
04-19-2022 16:46
04-19-2022 16:46
You need to use one of the allowed insecure IP addresses.
04-21-2022 06:49
04-21-2022 06:49
I think you mean protocols? Have you been able to use anything but "wss"? Working with the 6.0 version sdk It won't even allow wss it seems
04-21-2022 13:37
04-21-2022 13:37
There may be two issues here. If you're using a secure connection (wss or https), you'll need a non-self-signed SSL certificate associated with your server.
If you're not using a secure connection, you'll need to use one of a small number of allowed IP addresses (and I don't think that 0.0.0.0 is one of them).