remove all wss

This commit is contained in:
MuslemRahimi 2024-09-16 23:37:17 +02:00
parent 13201259cf
commit 0b7b2660de
3 changed files with 8 additions and 5 deletions

View File

@ -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() {

View File

@ -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",

View File

@ -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",