Saving data from websocket


Hi all, I have googled and searched this sub but have managed to only find similar questions but no clear answer. Is there some software around to allow me to save a stream of data from a websocket to my harddrive as it comes in? For instance I would like to be able to capture all the data from a wss:// feed and save it (like a tail, appending a text file or similar with the latest line of data) as a daily file, starting each midnight.

Any help appreciated,


Questions is bit broad, so lemme start by asking some questions.

  1. In which format do you send data from your client?
  2. Why you want to use only websockets and not use HTTP?