I've done a few things with workers years ago - and I remember thinking "someone is going to make the socket.io of workers someday, because this is verbose!". I think this delivers!

I've had an idea for a fun little JS game for a while now - seeing this is going to give me an excuse to build it and try workers at the same time.

Thanks for sharing!

What do you think about Comlink? It's a Google endorsed library with a similar syntax. Not sure about node support though.

Also supports Node.js, service workers and iFrame communication.

https://github.com/GoogleChromeLabs/comlink