Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#613·ws

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

View original on GitHubView discussion on GitHub