var
Cli:TWsocketClient;
i:integer
begin
for i:=0 to WsocketServer1.ClientCount-1 do
begin
Cli:=WsocketServer1.Client;
Cli.......
end;
end;
或
procedure TForm1.WSocketServer1ClientConnect(Sender: TObject; Client: TWSocketClient; Error: Word);
procedure TForm1.WSocketServer1ClientCreate(Sender: TObject; Client: TWSocketClient);
procedure TForm1.WSocketServer1ClientDisconnect(Sender: TObject; Client: TWSocketClient; Error: Word);