feat(websocket): add ability to remove listener (#2027)

This commit is contained in:
Twilight
2025-01-27 20:03:24 +05:45
committed by GitHub
parent 0b3b3a22d2
commit 78acfa456f
3 changed files with 16 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
---
websocket-js: minor
websocket: minor
---
`addListener` now returns a cleanup function instead of `void` to remove the listener.