Closed bin-san closed 7 months ago
I guess, yes, using NoBrowser
.
webui_show_browser(myWindow, "<html>...</html>", NoBrowser);
#include <webui.hpp>
int main() {
webui::window myWindow;
myWindow.show_browser(
"<html><script src=\"webui.js\"></script> Hello World from C++! </html>",
NoBrowser);
webui::wait();
return 0;
}
But now How can I know which port it is running on?
Use webui_get_url()
, it returns HOST:PORT.
myWindow.get_url();
Thank you.
How can I make a webserver using webui, without using the native window? I mean the program will run the server locally, then I have to access it via web browser. I dont want to create native window... Is it possible?