From 0b7b2660de93bf3484616e5d8cc825a4023d7a83 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 16 Sep 2024 23:37:17 +0200 Subject: [PATCH] remove all wss --- fastify/app.js | 2 ++ fastify/package-lock.json | 9 +++++---- fastify/package.json | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/fastify/app.js b/fastify/app.js index eec50cb..47389cf 100755 --- a/fastify/app.js +++ b/fastify/app.js @@ -121,6 +121,7 @@ const WebSocket = require("ws"); let isSend = false; let sendInterval; +/* fastify.register(async function (fastify) { fastify.get("/realtime-data", { websocket: true }, (connection, req) => { // Send a welcome message to the client @@ -392,6 +393,7 @@ fastify.register(async function (fastify) { } ); }); +*/ // Function to start the server function startServer() { diff --git a/fastify/package-lock.json b/fastify/package-lock.json index 08455e8..8aa2643 100644 --- a/fastify/package-lock.json +++ b/fastify/package-lock.json @@ -11,7 +11,7 @@ "blob-util": "^2.0.2", "cheerio": "^1.0.0-rc.12", "dotenv": "^16.4.5", - "fastify": "^4.26.0", + "fastify": "^4.28.1", "got": "^11.8.3", "https": "^1.0.0", "mixpanel": "^0.18.0", @@ -863,9 +863,9 @@ "integrity": "sha512-eel5UKGn369gGEWOqBShmFJWfq/xSJvsgDzgLYC845GneayWvXBf0lJCBn5qTABfewy1ZDPoaR5OZCP+kssfuw==" }, "node_modules/fastify": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.27.0.tgz", - "integrity": "sha512-ci9IXzbigB8dyi0mSy3faa3Bsj0xWAPb9JeT4KRzubdSb6pNhcADRUaXCBml6V1Ss/a05kbtQls5LBmhHydoTA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.28.1.tgz", + "integrity": "sha512-kFWUtpNr4i7t5vY2EJPCN2KgMVpuqfU4NjnJNCgiNB900oiDeYqaNDRcAfeBbOF5hGixixxcKnOU4KN9z6QncQ==", "funding": [ { "type": "github", @@ -876,6 +876,7 @@ "url": "https://opencollective.com/fastify" } ], + "license": "MIT", "dependencies": { "@fastify/ajv-compiler": "^3.5.0", "@fastify/error": "^3.4.0", diff --git a/fastify/package.json b/fastify/package.json index b3fde80..e694097 100755 --- a/fastify/package.json +++ b/fastify/package.json @@ -9,7 +9,7 @@ "blob-util": "^2.0.2", "cheerio": "^1.0.0-rc.12", "dotenv": "^16.4.5", - "fastify": "^4.26.0", + "fastify": "^4.28.1", "got": "^11.8.3", "https": "^1.0.0", "mixpanel": "^0.18.0",