Skip to content

Feature/wasm remote3#2104

Open
thibaudk wants to merge 22 commits into
masterfrom
feature/wasm-remote3
Open

Feature/wasm remote3#2104
thibaudk wants to merge 22 commits into
masterfrom
feature/wasm-remote3

Conversation

@thibaudk

@thibaudk thibaudk commented Jul 6, 2026

Copy link
Copy Markdown
Member

Update remote control path
forego HTML injection
accept .wasm requests
Enable CORS

@thibaudk thibaudk requested a review from jcelerier July 6, 2026 17:43
@thibaudk thibaudk force-pushed the feature/wasm-remote3 branch from 31beb64 to 95e5c60 Compare July 6, 2026 17:44
res.set(http::field::access_control_allow_origin, "*");
res.set(http::field::access_control_allow_methods, "GET");

res.set(http::field::server, BOOST_BEAST_VERSION_STRING);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be something more personalized for ossia

}
catch (const std::exception& e)
{
std::cerr << "Error: " << e.what() << '\n';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this integrate more with Qt ?

auto const address2 = net::ip::make_address("0.0.0.0");
auto const port = static_cast<unsigned short>(std::atoi("8080"));
std::string packagesPath = score::AppContext().settings<Library::Settings::Model>().getPackagesPath().toStdString();
m_buildWasmPath = packagesPath + "/wasm-remote/";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually I'd like the users to be able to configure this path in the remote control settings (and even enable / disable the webserver)

{
try
{
auto const address2 = net::ip::make_address("0.0.0.0");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The end-user should be able to control this and the port


#include <QDir>
#include <QHostAddress>
#include <QNetworkInterface>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem unused ?

}
}
// // Set the IP address in the remote.html file
// void

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove the code it's fine

@jcelerier jcelerier mentioned this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants