I want to ask a question about my connection of my virtualmin

SYSTEM INFORMATION
OS type and version AlmaLinux 8.10
Webmin version 2.202
Virtualmin version 7.20.2
Webserver version Linux 4.18.0-553.22.1.el8_10.x86_64 on x86_64
Related packages SUGGESTED

how to know what is the connection type of my virtualmin, is it websocket or Rest Api

This question doesn’t make sense.

Normally you connect to Virtualmin using a web browser, and that is an https connection. Sometimes there will be WebSocket connections for the interactive Terminal and maybe some realtime stats (maybe, I seem to recall Ilia made some of those work over a WebSocket connection recently). But, you don’t need to know that, it’s a problem for your browser to deal with.

And, there is an HTTPS API, which isn’t very RESTful, but you can do most everything in Virtualmin using that API.

But, I think you’re asking the wrong question, because “WebSocket or REST API” doesn’t make sense. They’re unrelated concepts. You don’t use WebSockets instead of a REST API, and most web applications use neither.

So, what are you trying to do that makes you think you need to know about WebSockets or REST APIs?

1 Like

i asked this question because iam using wowonder script for my website and i want to setup wowonder messenger app for android the website and the app are connected eachother so in the documentation of installing the app they ask me :

In your application, you have two styles to show the last chat list either all chats (default) with each other or multi-tabs where users are on a page and groups are on a page and pages are on a page separately.

In your application, you have two types of connections by socket.io or by rest API
if you are using a connection type socket system you should add a port socket for your server

You can enable to show alert toast when the user is online now

If you have a problem connecting to a socket system, you must check your server write, you can specify two types of connection WebSocket, Polling
Set the variable below to True or False to give the user some features such as chat archive, chat mute mode…etc

so if iam using websocket what is the port they want me to add?

WoWonder is a PHP Social Network Script, and It is the best avoided especially if downloaded from sites other than https://wowonder.com/

you must follow their instructions to the letter and take care as with any app
basically it is a PHP application and a CHAT app

u didnt understand me sir, iam already using the real script and it also has android app called wowonder messenger and has app called wowonder timeline and all for one company so i want help in my question .

my apologies. I have a client who installed this on a VS (a domain Virtualmin) I control - it installed without any problems that were elevated to me as their system admin. As far as I can tell it is working to their satisfaction.

I have posted their team a question if they did have any issues - and get back (they are in a different timezone so it might take 24hrs)

Meanwhile if anyone else has experience?

1 Like

That has nothing to do with Virtualmin. Virtualmin is not your web server (it has its own dedicated web server, but it doesn’t run your applications).

By default, PHP applications run with PHP-FPM proxied via your web server (Apache or nginx). REST APIs are HTTP or HTTPS, what makes it a REST API is how it responds to requests, it is nothing special or unusual. It does not need web server support.

Web Sockets may or may not need specific configuration in the web server, depending on what’s answering the requests.

I think you should just follow the instructions provided by the software vendor for either Apache or nginx (depending which one you’re using). Virtualmin is not involved in any way. You may need to open an additional port in the firewall that is setup by default in a Virtualmin system (using the Firewalld module in Webmin or using the firewall-cmd CLI), if they have a standalone server for something (i.e. not running as a regular PHP application…it is not clear to me from the snippet of doc you’ve provided how they’re handling WebSockets).

We can’t provide support for third party software. I’ve never seen this application or heard of it until just now. But, presumably they provide documentation (and maybe support, if it is a commercial product). So, start there.

They were slower to respond than I had hoped. and my translation skills are not as good as they used to be. but the general gist is:

The product is commercial and is (sadly) full of gotchas, phone homes and annoying 3rd party links. (far more than just required for licensing) they upgraded after moving to my VM hosting - but encountered more problems with buried code (especially in the \vendor libraries.

I am guessing - here but these may be related to your issues.

Although the code is primarily in PHP and the supplier does give limited support - they are, understandably, somewhat protective of how/any why they run various internal workings.

As always I would caution you if you fall within any country’s privacy rules.