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

No https connection with socket.io #38

Open
ottopic opened this issue Dec 30, 2016 · 2 comments
Open

No https connection with socket.io #38

ottopic opened this issue Dec 30, 2016 · 2 comments

Comments

@ottopic
Copy link

ottopic commented Dec 30, 2016

I'm using http connection and all works fine. Now on server have activated https on socket but in the app it don't works. I don't receive any error of connection and I don't understand the problem.

`
io.connect(myHttpsUrl, {

'reconnection' : true,
'reconnectionDelay' : 500,
transports : ["websocket"]
});
`

I tried with param secure : true too. Can you help me?

@ottopic
Copy link
Author

ottopic commented Dec 30, 2016

I have update socket.io.js and now it return the error The certificate for this server is invalid. You might be connecting to a server that is pretending to be ...

Is there param to accept auto signed certificate?

@ottopic
Copy link
Author

ottopic commented Dec 30, 2016

I have installed new certificate not self signed and now I have not more certificate error but

[INFO] : error!"{"code":0,"message":"Transport unknown"}"
[INFO] : error!"HTTP error"

coming back to my first socket.io.js now all works fine. With your last socket.io.js my script doesn't works, why?

In attachments the two files

Socket.io.js.zip

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

1 participant