Skip to content

TIdWebsocketSimpleClient.Connect() method should be declared as 'reintroduce' instead of 'overload' #11

@rlebeau

Description

@rlebeau

The TIdWebsocketSimpleClient.Connect() method should be declared as reintroduce instead of overload, to help dissuade users from calling the public parameter-less Connect() method that is inherited from TIdTCPClient, eg:

// WRONG!
Client.Host := host;
Client.Port := port;
Client.Connect;

// CORRECT!
Client.Connect('ws://host:port');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions