bugfixing websocket
This commit is contained in:
parent
0f44a75242
commit
27a8c16ad5
@ -214,7 +214,6 @@ fastify.register(async function (fastify) {
|
|||||||
fastify.get('/realtime-crypto-data', { websocket: true }, (connection, req) => {
|
fastify.get('/realtime-crypto-data', { websocket: true }, (connection, req) => {
|
||||||
// Send a welcome message to the client
|
// Send a welcome message to the client
|
||||||
|
|
||||||
//connection.socket.send('hi from server');
|
|
||||||
|
|
||||||
// Listen for incoming messages from the client
|
// Listen for incoming messages from the client
|
||||||
connection.socket.on('message', (message) => {
|
connection.socket.on('message', (message) => {
|
||||||
|
|||||||
958
fastify/package-lock.json
generated
958
fastify/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,24 +3,25 @@
|
|||||||
"start": "nodemon app.js"
|
"start": "nodemon app.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/cors": "^9.0.1",
|
"@fastify/cors": "^8.5.0",
|
||||||
"@fastify/websocket": "^10.0.1",
|
"@fastify/websocket": "^8.2.0",
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.6.2",
|
||||||
"blob-util": "^2.0.2",
|
"blob-util": "^2.0.2",
|
||||||
"cheerio": "^1.0.0-rc.12",
|
"cheerio": "^1.0.0-rc.12",
|
||||||
|
"fastify": "^4.26.0",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"fastify": "^4.27.0",
|
|
||||||
"got": "^11.8.3",
|
"got": "^11.8.3",
|
||||||
"https": "^1.0.0",
|
"https": "^1.0.0",
|
||||||
"mixpanel": "^0.18.0",
|
"mixpanel": "^0.18.0",
|
||||||
"object-to-formdata": "^4.5.1",
|
"object-to-formdata": "^4.5.1",
|
||||||
"pino": "^9.1.0",
|
"pino": "^8.19.0",
|
||||||
"pocketbase": "^0.21.2",
|
"pocketbase": "^0.21.2",
|
||||||
"sharp": "^0.33.4",
|
"sharp": "^0.32.6",
|
||||||
"ua-parser-js": "^1.0.37",
|
"ua-parser-js": "^1.0.37",
|
||||||
"ws": "^8.17.0"
|
"ws": "^8.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^3.1.1"
|
"nodemon": "^3.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user