Replies: 4 comments 8 replies
-
what does this mean? you need to be more specific, you have a bunch of console.logs set up on both server and client, what do they say when you load the page? you are missing auto-reconnect code to try the ws connection again but you want it to connect on the first try |
Beta Was this translation helpful? Give feedback.
-
What is the error message |
Beta Was this translation helpful? Give feedback.
-
I try to connect to that 'wss://eso-dev.com/ws' and get no connection. you are saying it is 50% chance connecting? or is it 0% chance? just something you need to troubleshoot and fix with your setup |
Beta Was this translation helpful? Give feedback.
-
Hi there, I think this is a case similar to what I encountered in uNetworking/uWebSockets#1132 (comment), which is caused by an incomplete certificate chain. On chrome desktop it will still load the page since it's tolerant but you'll get intermittent connects and disconnects, but on Firefox and Chrome Android the page won't even load at all. You can also test your endpoint at https://www.ssllabs.com/ssltest/ which is great in telling you if there are problems with your site's certificate chain, in which case you might get the following message: On my case when I generate certificates, LetsEncrypt gives me four (4) files: On the above referenced issue, this one fails: const key_file_name = `/etc/letsencrypt/live/${endpoint_domain}/privkey.pem`;
const cert_file_name = `/etc/letsencrypt/live/${endpoint_domain}/cert.pem`;
const https_app = uws.SSLApp({ key_file_name, cert_file_name }); Yet this one where I use the const key_file_name = `/etc/letsencrypt/live/${endpoint_domain}/privkey.pem`;
const cert_file_name = `/etc/letsencrypt/live/${endpoint_domain}/fullchain.pem`; // fixed here
const https_app = uws.SSLApp({ key_file_name, cert_file_name }); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Being new to all of this in the Javascript world I am running into a few issues but getting far. When I go to launch the app, the app doesn't always connect. some times I have to refresh a few times before it connects. What would cause this?
Configuration:
Client.js
Server.js
Beta Was this translation helpful? Give feedback.
All reactions