expose close callback
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript, nodejs
- Domain
- networking
Research direction
Start in lib/WebSocket.js around the .close(code, data) method at line 100 and the related code near line 121. Trace how the close operation is exposed, then make the callback available there and verify the existing WebSocket tests cover the callback behavior.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from websockets/ws
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
websockets/ws#1818 · 49 comments · 11 reactions ·
-
WebSocket over HTTP2 Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
websockets/ws#1458 · 32 comments · 40 reactions ·
-
discussion
Difficulty 5/5 Over a week Newbie friendliness 35/100
websockets/ws#1369 · 49 comments · 19 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
websockets/ws#377 · 73 comments · 29 reactions ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·