expose close callback
Author: coolaj86Created Nov 9, 2015Updated Aug 13, 2026
You have a .close(code, data) method here:
https://github.com/websockets/ws/blob/master/lib/WebSocket.js#L100
But you don't expose the callback here: https://github.com/websockets/ws/blob/master/lib/WebSocket.js#L121
Source: websockets/ws