delphi-websocket icon indicating copy to clipboard operation
delphi-websocket copied to clipboard

Can't close the application?

Open tiger822 opened this issue 9 months ago • 0 comments

I modify the code to let the program quits when receipted 'quit' , but it's not working properly: ` procedure TWebSocketDemo.Execute(AContext: TIdContext); var io: TWebSocketIOHandlerHelper; msg: string; begin io := TWebSocketIOHandlerHelper(AContext.Connection.IOHandler); io.CheckForDataOnSource(10); msg := io.ReadString; if msg='quit' then begin Destroy; exit; end; if msg = '' then exit;

writeln(msg);

io.WriteString(msg); end; `

tiger822 avatar May 21 '24 08:05 tiger822