Seems like the error callback is malformatted (#12477)
Seems like the error callback is malformatted (#12477)

* Seems like the error callback is malformatted

New to typescript, but it complains on my cb function since it expects an error argument and doesn't return an object.

I proposed these changes, but haven't done any typescripting really (trying to migrate to TS), so feel free to deny this PR if it's wrong.
I did check with the source code in ws before suggesting this though.

* Updated argument with an optional any type

zuzusik/DefinitelyTyped,aciccarello/DefinitelyTyped,subash-a/DefinitelyTyped,nycdotnet/DefinitelyTyped,mcrawshaw/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,zuzusik/DefinitelyTyped,psnider/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,martinduparc/DefinitelyTyped,psnider/DefinitelyTyped,abbasmhd/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,minodisk/DefinitelyTyped,mcrawshaw/DefinitelyTyped,alexdresko/DefinitelyTyped,johan-gorter/DefinitelyTyped,benliddicott/DefinitelyTyped,minodisk/DefinitelyTyped,magny/DefinitelyTyped,alexdresko/DefinitelyTyped,QuatroCode/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,chrismbarr/DefinitelyTyped,scriby/DefinitelyTyped,QuatroCode/DefinitelyTyped,hellopao/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,georgemarshall/DefinitelyTyped,chrismbarr/DefinitelyTyped,alvarorahul/DefinitelyTyped,chrootsu/DefinitelyTyped,benishouga/DefinitelyTyped,hellopao/DefinitelyTyped,alvarorahul/DefinitelyTyped,arusakov/DefinitelyTyped,use-strict/DefinitelyTyped,smrq/DefinitelyTyped,YousefED/DefinitelyTyped,sledorze/DefinitelyTyped,benishouga/DefinitelyTyped,subash-a/DefinitelyTyped,borisyankov/DefinitelyTyped,progre/DefinitelyTyped,martinduparc/DefinitelyTyped,shlomiassaf/DefinitelyTyped,pocesar/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,amir-arad/DefinitelyTyped,AgentME/DefinitelyTyped,ashwinr/DefinitelyTyped,smrq/DefinitelyTyped,dsebastien/DefinitelyTyped,jimthedev/DefinitelyTyped,jimthedev/DefinitelyTyped,use-strict/DefinitelyTyped,shlomiassaf/DefinitelyTyped,AgentME/DefinitelyTyped,johan-gorter/DefinitelyTyped,one-pieces/DefinitelyTyped,arusakov/DefinitelyTyped,schmuli/DefinitelyTyped,aciccarello/DefinitelyTyped,pocesar/DefinitelyTyped,hellopao/DefinitelyTyped,micurs/DefinitelyTyped,sledorze/DefinitelyTyped,arusakov/DefinitelyTyped,YousefED/DefinitelyTyped,isman-usoh/DefinitelyTyped,scriby/DefinitelyTyped,progre/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,georgemarshall/DefinitelyTyped,schmuli/DefinitelyTyped,ashwinr/DefinitelyTyped,aciccarello/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,jimthedev/DefinitelyTyped,psnider/DefinitelyTyped,nycdotnet/DefinitelyTyped,borisyankov/DefinitelyTyped,benishouga/DefinitelyTyped,mcliment/DefinitelyTyped,chrootsu/DefinitelyTyped,AgentME/DefinitelyTyped,abbasmhd/DefinitelyTyped,zuzusik/DefinitelyTyped,martinduparc/DefinitelyTyped,schmuli/DefinitelyTyped,rolandzwaga/DefinitelyTyped,pocesar/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,isman-usoh/DefinitelyTyped,georgemarshall/DefinitelyTyped