Comments (6)
Fantastic! I'll update the README. Thanks!
from websocket-node.
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.
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.
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.
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.
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)
- The NPM package is not a place for politics HOT 1
- The NPM package is not a place for politics HOT 2
- Get URL Parameters HOT 1
- Ssl using cloudflare
- Send bytes query
- broadcast
- How to connect to multiple WebSockets? HOT 1
- install of websocket and immediatly disapear
- How Can we get Connection URL from w3cwebsocket to webSocket.Server Connection
- Similar to emit socket.io HOT 1
- send to all connected clients HOT 2
- Getting vulnerable issue [email protected]
- Need more docs on the usage of client
- Unable to connect with auth info in url and special characters HOT 1
- connection.on('message', ...) - where this event is emitted ? HOT 1
- This pkg appears abandoned. I recommend switching to "ws", it's a very similar implementation HOT 4
- Malware dependency
- Update UTF-8 Validation Code
- Request to Upgrade es5-ext Dependency to Resolve Veracode Vulnerability HOT 5
- websocket doesn't work under bun HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocket-node.