By Markus Hake on Friday, 03 May 2024
Posted in General
Replies 1
Likes 0
Views 669
Votes 0
Hello,

for synchronous calls to a websocket there currently exists a method that operates with strings as input and output values:


function TsgcWSConnection.WriteAndWaitData(const aText: string; const aTimeOut: Integer = 10000): string;


How about adding a variant that uses streams instead of strings


function TsgcWSConnection.WriteAndWaitData(const aStream: TStream; const aTimeOut: Integer = 10000): TMemoryStream;


as is already the case with the asynchronous methods TsgcWSConnection.WriteData() ?

Kind regards
Michael
Hello,

Yes, most probably can be implemented, I'll let you know when it's ready. Thanks for the suggestion.

Kind regards,
Sergio
·
5 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post