Skip to content

Instantly share code, notes, and snippets.

Created July 5, 2018 02:53
What would you like to do?
const channel = new MessageChannel();
channel.port1.onmessage = e => {
return ?
console.log( :
console.log(`I got a message from ws. ${JSON.stringify(}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment