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?
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");
Best AnswerI 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
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).
Best Answer