04-19-2022 16:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-19-2022 16:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-19-2022 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-19-2022 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You need to use one of the allowed insecure IP addresses.
Gondwana Software

04-21-2022 06:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-21-2022 06:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-21-2022 13:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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).
Gondwana Software

