mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
delete unused files
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
const proxy = require("http-proxy-middleware");
|
||||
|
||||
module.exports = function (app) {
|
||||
app.use(
|
||||
proxy("/mfp/api/imfpush/", {
|
||||
target: "http://gpr-dev-10.gabinetedigital.local:9080",
|
||||
changeOrigin: true,
|
||||
pathRewrite: function (path, req) {
|
||||
return path.replace("/mfp/api", "");
|
||||
},
|
||||
})
|
||||
);
|
||||
app.use(
|
||||
proxy("/mfp/api", {
|
||||
target: "http://gpr-dev-10.gabinetedigital.local:9080",
|
||||
changeOrigin: true,
|
||||
pathRewrite: function (path, req) {
|
||||
console.log("Rewrite in /mfp/api: ", path);
|
||||
return path;
|
||||
},
|
||||
})
|
||||
);
|
||||
};
|
||||
@@ -1,23 +0,0 @@
|
||||
// src/shared-worker.js
|
||||
self.onconnect = function (event) {
|
||||
const port = event.ports[0];
|
||||
|
||||
port.onmessage = function (e) {
|
||||
const message = e.data;
|
||||
console.log('Received from client:', message);
|
||||
|
||||
// Echo the message back to all connected clients
|
||||
port.postMessage('Echo: ' + message);
|
||||
}
|
||||
|
||||
|
||||
// Optional: broadcast messages to all connected clients
|
||||
function broadcast(message) {
|
||||
self.clients.forEach(client => {
|
||||
client.postMessage(message);
|
||||
});
|
||||
}
|
||||
|
||||
// Example of broadcasting a message
|
||||
broadcast('Shared Worker connected');
|
||||
}
|
||||
Reference in New Issue
Block a user