simple-websocket
simple-websocket copied to clipboard
fix: return `this` from `destroy()`
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