|
@@ -271,7 +271,7 @@ begin
|
|
If Assigned(MessagePump) then
|
|
If Assigned(MessagePump) then
|
|
MessagePump.RemoveClient(FConnection);
|
|
MessagePump.RemoveClient(FConnection);
|
|
If Assigned(OnDisconnect) then
|
|
If Assigned(OnDisconnect) then
|
|
- OnDisconnect(Self);
|
|
|
|
|
|
+ OnDisconnect(FConnection);
|
|
// We cannot free the connection here, because it still needs to call it's own OnDisconnect.
|
|
// We cannot free the connection here, because it still needs to call it's own OnDisconnect.
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -294,7 +294,7 @@ begin
|
|
FConnection:=CreateClientConnection(FTransport);
|
|
FConnection:=CreateClientConnection(FTransport);
|
|
FConnection.OnMessageReceived:=@MessageReceived;
|
|
FConnection.OnMessageReceived:=@MessageReceived;
|
|
FConnection.OnControl:=@ControlReceived;
|
|
FConnection.OnControl:=@ControlReceived;
|
|
- FCOnnection.OutgoingFrameMask:=Self.OutGoingFrameMask;
|
|
|
|
|
|
+ FConnection.OutgoingFrameMask:=Self.OutGoingFrameMask;
|
|
if UseSSL then
|
|
if UseSSL then
|
|
FSocket.Connect;
|
|
FSocket.Connect;
|
|
FActive:=True;
|
|
FActive:=True;
|
|
@@ -470,7 +470,6 @@ begin
|
|
FreeAndNil(FSocket);
|
|
FreeAndNil(FSocket);
|
|
end;
|
|
end;
|
|
|
|
|
|
-
|
|
|
|
procedure TCustomWebsocketClient.Disconnect(SendClose : boolean = true);
|
|
procedure TCustomWebsocketClient.Disconnect(SendClose : boolean = true);
|
|
|
|
|
|
begin
|
|
begin
|