MinPubSub - 198 byte publish/subscribe messaging micro-framework
&lt;code&gt; var handle = subscribe(&quot;/some/topic&quot;, function(msg){
        console.log(msg);
    });

    //publish topic a few times
    publish(&quot;/some/topic&quot;, [&quot;first time&quot;]);&lt;/code&gt;