asimen1 / chrome-ext-messenger

DEPRECATED (use ext-messenger now): Chrome extension message passing made easy
MIT License
13 stars 3 forks source link

Cool library - I happened to write a similar one around the same time #1

Closed eejdoowad closed 7 years ago

eejdoowad commented 7 years ago

Check it out. https://github.com/eejdoowad/mosi.

Some notable differences:

asimen1 commented 7 years ago

Thanks eejdoowad, closing since it's not really an issue.

I saw your library before but I wanted to create something that is more approachable to chrome developers by making it as close as possible to chrome's original message passing API but without handling all it's quirks (especially for sending messages which require relaying in the background page). So to ease the chrome developer's life, my library uses callbacks and similar syntax and arguments of the original API.

I added only a few useful improvements like sending messages to multiple listeners/ports at once, listeners identied by string names, automatic async support, connected/disconnect port handler, etc...

Cheers :smile: