Skip to content

Instantly share code, notes, and snippets.

@yakovenkodenis
Created November 21, 2022 14:11
Show Gist options
  • Save yakovenkodenis/2311e6c98e747390e2075e05cc34cd83 to your computer and use it in GitHub Desktop.
Save yakovenkodenis/2311e6c98e747390e2075e05cc34cd83 to your computer and use it in GitHub Desktop.
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