Last active
April 21, 2016 23:45
-
-
Save wpalmer/ac49cd246efe33e4b8468255eadb3af0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://nodejs.org/api/http.html#http_http_request_options_callback | |
var req = http.request(options); | |
req.end(); | |
req.on('upgrade', (res, socket, upgradeHead) => { | |
console.log('got upgraded!'); | |
socket.end(); | |
process.exit(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment