Skip to content

Commit

Permalink
bugfixing websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed May 28, 2024
1 parent 0f44a75 commit 27a8c16
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 540 deletions.
1 change: 0 additions & 1 deletion fastify/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ fastify.register(async function (fastify) {
fastify.get('/realtime-crypto-data', { websocket: true }, (connection, req) => {
// Send a welcome message to the client

//connection.socket.send('hi from server');

// Listen for incoming messages from the client
connection.socket.on('message', (message) => {
Expand Down
Loading

0 comments on commit 27a8c16

Please sign in to comment.