<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: lund8888</title>
    <description>The latest articles on DEV Community by lund8888 (@lund8888).</description>
    <link>https://dev.to/lund8888</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F356016%2Ffcf05bd4-c60a-4f77-917f-a51f7bbfda66.png</url>
      <title>DEV Community: lund8888</title>
      <link>https://dev.to/lund8888</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lund8888"/>
    <language>en</language>
    <item>
      <title>exe closes immediately</title>
      <dc:creator>lund8888</dc:creator>
      <pubDate>Thu, 26 Mar 2020 22:30:38 +0000</pubDate>
      <link>https://dev.to/lund8888/exe-closes-immediately-9ad</link>
      <guid>https://dev.to/lund8888/exe-closes-immediately-9ad</guid>
      <description>&lt;p&gt;Hello, this is my first time with node.js&lt;br&gt;
I followed your example and I could create an exe for windows, perfect. Let's say that we wish to add a part of "Hello world" in the main with a timeout , something like this : &lt;/p&gt;

&lt;p&gt;var http = require('http');&lt;/p&gt;

&lt;p&gt;var server= http.createServer(function (request, response) {&lt;br&gt;
  response.writeHead(200, {'Content-Type': 'text/plain'});&lt;br&gt;
  response.end('Hello World\n');&lt;br&gt;
}).listen(8124);&lt;/p&gt;

&lt;p&gt;console.log('Server running at &lt;a href="http://127.0.0.1:8124/'"&gt;http://127.0.0.1:8124/'&lt;/a&gt;);&lt;/p&gt;

&lt;p&gt;server.setTimeout(100000);&lt;/p&gt;

&lt;p&gt;I can compile it and create the exe. However, when I open the exe it closes directly and I cannot see what I expect as an output, the console looks like crushing and closes immediately. First world problems I guess...&lt;/p&gt;

&lt;p&gt;Can you help? &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
