-
Notifications
You must be signed in to change notification settings - Fork 106
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
Black screen only with no vtx client when using websocket support for browser #500
Comments
Looking at the vtx_clientserver issues, someone else is having the same problem: codewar65/VTX_ClientServer#9 and it hasn't been addressed by dev. |
Looks like a piece of data expecting an array is not actually an array. Try browsing to https://xibalba.l33t.codes, check out the VTX setup there. You can view source for all of it. May be a config problem. |
You are right. I'm use the config from here https://nuskooler.github.io/enigma-bbs/servers/loginservers/websocket.html Looking at xibalba I changed the following to match: I am running the webserver on the host itself (nginx) and am unable to have enigma appear within the client. Whenever I choose connect, the lightning bolt turns yellow but nothing happens. My vtxdata.js is as below:
I can get to the VTX client via local ip /vtx.html but that's it. I have a proxy server that I will expose this to the internet with but would like to at least get it running locally first. |
@minnixtx What does your nginx configuration for this look like? Also, just so you are aware, browsers won't let you connect insecurely, so you'll have to TLS aka wss://. For my setup, it looks something like this: With nginx in the mix, you need to allow it to do a WebSocket upgrade over the port (see nginx docs) The alternative is direct: Hopefully that helped some |
I don't have a config which is probably the problem. I don't believe it's a TLS problem or I wouldn't even be able to see the client. Of course I have to tell the browser to allow an insecure connection. As I mentioned before it will eventually pass through a reverse proxy to terminate ssl before I expose it to the internet. My proxy is nginx proxy manager which terminates about 25 other servers.
I believe this is the issue. I'll have to create a small nginx conf for this purpose just to pass it off to NPM. Either that or I may be able to write it within NPM's advanced setting. Do you mind sharing the snippet of your nginx conf that pertains to the websocket proxying? |
@minnixtx https://nginx.org/en/docs/http/websocket.html I'm in a similar boat with a ton of routing via nginx, but this is exactly what I have for my Xibalba / WebSocket endpoint/backend. |
@minnixtx Just wanted to check in with you to see if the WebSocket upgrade was able to resolve your issue? |
Hey guys, sorry for the long pause. I have been dealing with Covid. As soon as I have the energy again I will get back on this, |
Documentation is wrong when it comes to configuring the VTX client. defCrsrAttr is an array not a number and it prevents the VTX client from connecting. Ref: NuSkooler#500 codewar65/VTX_ClientServer#9
Documentation is wrong when it comes to configuring the VTX client. defCrsrAttr is an array not a number and it prevents the VTX client from connecting. Ref: NuSkooler#500
Documentation is wrong when it comes to configuring the VTX client. This cause me a bit of headache and googling, so would be nice to have the documentation updated. defCrsrAttr is an array not a number and it prevents the VTX client from running. Ref: NuSkooler#500
Documentation is wrong when it comes to configuring the VTX client. This cause me a bit of headache and googling, so would be nice to have the documentation updated. defCrsrAttr is an array not a number and it prevents the VTX client from connecting. Ref: NuSkooler#500
Describe the Bug
The vtx client does not appear in the browser
To Reproduce
Follow the installation guide for vtx client and websocket support
Expected Behavior
The vtx client should appear in the browser
Actual Behavior
Black screen
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
npm install
oryarn
reports successnode --version
): 14uname -a
on *nix systems): Debian 11 x86-64enigma works fine when telnet via local host: telnet localhost 8888
Here are my config files:
websocket config within config.hjson:
Web server is nginx installed on localhost. Folder structure is /var/www/html/assets/vtx/(everything from vtx www folder) and /var/www/html/vtx.html
vtxdata.js:
I will eventually run this behind nginx proxy manager but for now just testing within my network I only get a black screen called Lugcast Land and no vtx client when going to http://machineIP/vtx.html. If I go to http://machineIP:8810 I get a message "ENiGMAA1/2 BBS WebSocket Server!" so websockets are working. Going to to browser console I see the following error:
The link for the error goes here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_function?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default Unfortunately I don't know much about js so this is greek to me but line 4715 within the vtxclient that it is referencing is this:
Anymore info needed let me know.
The text was updated successfully, but these errors were encountered: