Przeglądaj źródła

Added a connection event when clients connect to the server.

Yuri 3 lat temu
rodzic
commit
73529f5266

+ 2 - 0
packages/fcl-web/src/websocket/fpwebsocketserver.pp

@@ -227,6 +227,8 @@ begin
     begin
     Connections.Add(Con);
     ConnectionHandler.HandleConnection(Con,True);
+    if Assigned(OnConnect) then
+      OnConnect(Sender, Con);
     end;
 end;