Skip to content
Snippets Groups Projects
Commit e45bbabe authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow websock connections also

parent 8496afc0
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ SourceWindow::SourceWindow(ftl::gui::Screen *screen)
uri.to_json(screen->root()->getConfig()["sources"].emplace_back());
} else {
ftl::URI uri(path);
if (uri.getScheme() == ftl::URI::SCHEME_TCP) {
if (uri.getScheme() == ftl::URI::SCHEME_TCP || uri.getScheme() == ftl::URI::SCHEME_WS) {
screen->net()->connect(path);
}
}
......
......@@ -191,6 +191,11 @@ static void run(ftl::Configurable *root) {
sender->post(fs);
return true;
});
} else {
ftl::URI uri(path);
if (uri.getScheme() == ftl::URI::SCHEME_TCP || uri.getScheme() == ftl::URI::SCHEME_WS) {
net->connect(path)->waitConnection();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment