Skip to content

Instantly share code, notes, and snippets.

@yakovenkodenis
Last active November 22, 2022 11:45
Show Gist options
  • Save yakovenkodenis/d72f578448752a16ea160e038028e52f to your computer and use it in GitHub Desktop.
Save yakovenkodenis/d72f578448752a16ea160e038028e52f to your computer and use it in GitHub Desktop.
socket.on('data', (buffer) =>
this.emit(
'data',
this.parseFrame(buffer),
(data) => socket.write(this.createFrame(data))
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment