Try/catch only handles some possible send errors; to capture them all use the optional callback instead.  See <https://github.com/einaros/ws/blob/master/README.md#error-handling-best-practices> for details.  This applies to other new send() calls in this patch as well.