Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use WSS doesn't work #30

Open
PietroGranati opened this issue Jun 18, 2020 · 2 comments
Open

Use WSS doesn't work #30

PietroGranati opened this issue Jun 18, 2020 · 2 comments

Comments

@PietroGranati
Copy link

I've searched in all the issue but I cannot make it work.
On ios i got:
"Invalid HTTP upgrade. code=403, type=upgradeError"
On android:
"unknown protocol: wss"

I have read that sockeio is not websocket but I read some of you works so I don't know what to do

@janvennemann
Copy link
Contributor

janvennemann commented Jun 24, 2020

This is a limitation of the underlying native libraries. You need to set secure: true in the options to enable handling for secure sockets.

const socket = io.connect('wss://example.com/', { secure: true });

The Android native client simply doesn't support wss: protocol so try to specify the url using https: instead.

@goj1
Copy link

goj1 commented Jun 30, 2021

I have the same problem! I tried all the tips I found on the internet. Nothing solves!

What's the problem with all the Titanium modules, everything has a problem, everything sucks because it's always necessary to search search search search and search to do simple things?
Nothing has documentation that helps, the developers of modules don't know how to solve community problems.
Have you ever thought about killing this technology that shouldn't even be called technology?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants