Created
          November 20, 2022 18:58 
        
      - 
      
- 
        Save yakovenkodenis/4db9bf54b2906812ecf705170c75b23d to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | this._server.on('upgrade', (req, socket) => { | |
| // ...upgrade request code... | |
| this.on('close', () => { | |
| console.log('closing....', socket); | |
| socket.destroy(); | |
| }); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment