Created
November 21, 2022 14:11
-
-
Save yakovenkodenis/2311e6c98e747390e2075e05cc34cd83 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
this._server.on('upgrade', (req, socket) => | |
// ...request upgrade logic... | |
socket.on('data', (buffer) => | |
this.emit('data', this.parseFrame(buffer)) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment