Code Monkey home page Code Monkey logo

Comments (6)

theturtle32 avatar theturtle32 commented on July 21, 2024

Fantastic! I'll update the README. Thanks!

from websocket-node.

karanm0830 avatar karanm0830 commented on July 21, 2024

in the echo-server.js (under test/), i did what pors mentioned in the above post, creating https server on the server side and replacing w/ wss on the client, but it still didn't work for me. could you please help out?

from websocket-node.

theturtle32 avatar theturtle32 commented on July 21, 2024

Can you be more specific? Did you configure the certificate correctly? Can you serve regular html files from your https server instance?

Sent from my iPhone

On Mar 5, 2013, at 9:44 AM, karanm0830 [email protected] wrote:

in the echo-server.js (under test/), i did what pors mentioned in the above post, creating https server on the server side and replacing w/ wss on the client, but it still didn't work for me.


Reply to this email directly or view it on GitHub.

from websocket-node.

jamesjenner avatar jamesjenner commented on July 21, 2024

Note that your client must have the certificate accepted. If you have the https setup you can browse to that manually and then you will get the 'accept cert' message, after which you will be able to connect.

I'm not sure on the behaviour on firefox, but with chrome you will get absolutely nothing if you try and connect via websockets to a server via ssl and you don't have the certificate imported into chrome. Even debugging javascript will not help, there are no errors, no nothing. From memory chrome acts as though no connection exists. If you wish to see a working example have a look at my videre-server.js project and my videre project. It optionally uses ssl and works fine.

from websocket-node.

ergousha avatar ergousha commented on July 21, 2024

Yes, I confirm James. I have a https setup and wss server. When I try connect to wss server from https web page, I can not connect from Firefox. I must manually request wss connection first, then firefox warn for certificate, When I accept certificate, later it works normally. However Firefox does not warn or load wss certificate automatically.
I also test with Chrome and it works normally. (It automatically load wss certificate without manually pointing it)
Safari behaves same as Firefox.
If we think about browser's security chain, it should be fine asking user about certificate acceptance if there is another ssl request from https web page loaded. But it does not even ask. That seems problem.
Although system works normally after manually force requesting wss certificate, this is not useful for common users. Do someone has an idea how to solve it?

from websocket-node.

jamesjenner avatar jamesjenner commented on July 21, 2024

I'm not aware of a way. I did a bit of searching on this a while back and it seems it's intentional (well for google). It seems that they intentionally do not prompt the user if javascript uses websockets to connect to a wss that is an upgrade of a https that the browser has not browsed to. I can see the logic in this. It's annoying but I do understand why they do this.

from websocket-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.