&gt; The web socket example makes this clearer. You never have to ask &quot;who owns the connection?&quot; to use the connection.<p>To be fair you can do this in javascript as well using a messaging pattern similar to elm. Many libraries like postal.js (synchronous) and msngr.js (asynchronous) support a messaging pattern where you can access resources without caring who owns them.