Client-side Javascript server - possible?
<p>Great day, community. </p>

<p>Question is next: is that possible to run simple HTTP server on client-side javascript which will be able to receive requests from global network and somehow process them?</p>

<p>For example, in a node.js I can run server with following code:</p>

<pre><code>var http = require('http');
http.createServer().listen(3000, '127.0.0.1');
</code></pre>

<p>and then I'll have server running on <code>127.0.0.1:3000</code>, I'm wonder to know is something similar to this can be implemented with a regular client-side javascript?</p>