About websocket file transfer

how can i transfer files using adonisjs websocket api

Hi @techicsdev!

Here seems to be quite decent example from client side: https://www.esegece.com/websockets/articles/features/225-websocket-upload-files-from-javascript

In backend side just take payload and save it into file as

fs.appendFileSync('./test.txt', Buffer.from(payload));

Where payload is websocket message content

1 Like

@McSneaky Thanks