@types/websocket: change the client.connect() method signature (#22734)
@types/websocket: change the client.connect() method signature (#22734)

* change the client.connect() method signature

* change {} to object

* add comment to specify ts version to 2.2 or higher

AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,georgemarshall/DefinitelyTyped,rolandzwaga/DefinitelyTyped,arusakov/DefinitelyTyped,magny/DefinitelyTyped,rolandzwaga/DefinitelyTyped,one-pieces/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,zuzusik/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,chrootsu/DefinitelyTyped,mcliment/DefinitelyTyped,zuzusik/DefinitelyTyped,zuzusik/DefinitelyTyped,borisyankov/DefinitelyTyped,chrootsu/DefinitelyTyped