simple-websocket icon indicating copy to clipboard operation
simple-websocket copied to clipboard

fix: return `this` from `destroy()`

Open danielroe opened this issue 3 years ago • 0 comments

For consistency with Node readable stream implementation, destroy() should likely return this - see https://nodejs.org/api/stream.html#readabledestroyerror and https://nodejs.org/api/stream.html#writabledestroyerror

Context: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57473

danielroe avatar Dec 01 '21 22:12 danielroe