testing
This commit is contained in:
@@ -1,11 +1,25 @@
|
||||
const ws = new WebSocket("ws://localhost:5273");
|
||||
|
||||
/*
|
||||
pub enum Method {
|
||||
Install(App),
|
||||
SetEnabled(String, bool),
|
||||
Edit(String, App),
|
||||
Uninstall(String),
|
||||
Toggle(String, bool),
|
||||
Start(String),
|
||||
Stop(String),
|
||||
Restart(String),
|
||||
}
|
||||
*/
|
||||
|
||||
ws.onmessage = (msg) => console.log("Received:", msg.data);
|
||||
ws.onopen = () => {
|
||||
ws.send("my-key");
|
||||
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
Uninstall: {
|
||||
Install: {
|
||||
repo: "[email protected]:osui-rs/osui.git",
|
||||
branch: "master",
|
||||
install_command: "",
|
||||
@@ -13,4 +27,22 @@ ws.onopen = () => {
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
SetEnabled: ["osui-rs/osui", true]
|
||||
})
|
||||
);
|
||||
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
Start: "osui-rs/osui"
|
||||
})
|
||||
);
|
||||
|
||||
// ws.send(
|
||||
// JSON.stringify({
|
||||
// Uninstall: "[email protected]:osui-rs/osui.git"
|
||||
// })
|
||||
// );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user