Browse Source

* OnDisconnect before disconnecting objects (cleanup). Fix issue #39780

Michaël Van Canneyt 3 years ago
parent
commit
32c3e6e844
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/websocket/fpwebsocketclient.pp

+ 1 - 1
packages/fcl-web/src/websocket/fpwebsocketclient.pp

@@ -184,7 +184,7 @@ Type
     Property OnHandshakeResponse : TWSClientHandshakeResponseEvent Read FOnHandshakeResponse Write FOnHandshakeResponse;
     Property OnHandshakeResponse : TWSClientHandshakeResponseEvent Read FOnHandshakeResponse Write FOnHandshakeResponse;
     // Called when a text message is received.
     // Called when a text message is received.
     property OnMessageReceived: TWSMessageEvent read FOnMessageReceived write FOnMessageReceived;
     property OnMessageReceived: TWSMessageEvent read FOnMessageReceived write FOnMessageReceived;
-    // Called when a connection is disconnected. Sender is the TWebSocketClientConnection object.
+    // Called when a connection is disconnected.
     property OnDisconnect: TNotifyEvent read FOnDisconnect write FOnDisconnect;
     property OnDisconnect: TNotifyEvent read FOnDisconnect write FOnDisconnect;
     // Called when a connection is established
     // Called when a connection is established
     property OnConnect: TNotifyEvent read FOnConnect write FOnConnect;
     property OnConnect: TNotifyEvent read FOnConnect write FOnConnect;