I need to scrape data from a websocket "just one time".
I mean that I don't need to get continuosly data from the source but I need to get the data one time and exit from the elaboration.
I don't need Async task, I just need to use it like a simple API.
I'm struggling with web search but I didn't find any solution.
Thanks to support
I think your are struggling to find such code as websocket is almost a bi-directional protocol, not really for a RPC style. But to answer your need, you could certainly use a library such as websocket-sharp . Your code to send a command text and receive back a return message would look like this :
Hope that code will help you to get started.