GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add missing `close` method to WebSocketStream interface by piotr-cz · Pull Request #4802 · nodejs/undici Conversation
|
| close (closeInfo = undefined) { | |
| if (closeInfo !== null) { | |
| closeInfo = webidl.converters.WebSocketCloseInfo(closeInfo) | |
| } | |
| // 1. Let code be closeInfo [" closeCode "] if present, or null otherwise. | |
| const code = closeInfo.closeCode ?? null | |
| // 2. Let reason be closeInfo [" reason "]. | |
| const reason = closeInfo.reason | |
| // 3. Close the WebSocket with this , code , and reason . | |
| closeWebSocketConnection(this.#handler, code, reason, true) | |
| } |
See diff
N/A if not
N/A
No breaking changes
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #4802 +/- ## ========================================== - Coverage 93.24% 93.23% -0.01% ========================================== Files 109 109 Lines 34100 34100 ========================================== - Hits 31796 31793 -3 - Misses 2304 2307 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.