Skip to content

Commit

Permalink
Merge pull request #431 from mStirner/dev
Browse files Browse the repository at this point in the history
Working on issues
  • Loading branch information
mStirner committed Jan 30, 2024
2 parents 9629630 + bb86465 commit efce07f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3

- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
- run: npm ci
- run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x, 17.x, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
mongodb-version: ["4.2", "4.4", "5.0"]

steps:
Expand Down
8 changes: 0 additions & 8 deletions routes/router.api.mdns.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ module.exports = (app, router) => {
// TODO: Reformat to match router.api.mdns.js code style/if-else
router.get("/", (req, res, next) => {

console.log("Request to /api/mdns");

// check if connection is a simple get request or ws client
if ((!req.headers["upgrade"] || !req.headers["connection"])) {
//return res.status(403).end();
Expand All @@ -63,18 +61,12 @@ module.exports = (app, router) => {
// keep sending new log entrys to client
wss.once("connection", (ws) => {

console.log("Clien connected to mdns");

C_MDNS.events.emit("connected", ws);

ws.on("message", (msg) => {
C_MDNS.events.emit("message", decode(msg), msg);
});

ws.on("close", () => {
console.log("Client disconnected disolaskjdflaskjfdasdf");
});


// QUERY LOCAL DNS
/*
Expand Down

0 comments on commit efce07f

Please sign in to comment.