I am trying to establish connection with a server in flutter using web sockets. is there a way to listen to a response using Future and not Streams. my needed line of code is something like this :
Future response = await ( expression to detect response from the server and return it);
does such a thing exist?