× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Are you using Express or any other framework? If these 2 items are related
you should look at making them separate routes (in the /routes subfolder)
and having those routes defined in your app.js main route file.

But if they are separate processes not really related to each other start a
new bash session.

On Wed, Jul 20, 2016 at 11:21 AM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:

Do I need to start another Bash session?

That's how I do it. The second server needs to be started on a different
port.

Aaron Bartell
litmis.com - Services for open source on IBM i


On Wed, Jul 20, 2016 at 11:10 AM, Mallikarjuna R Tappeta <
mrtappeta@xxxxxxxxx> wrote:

I am learning how to use node.js on IBMi and using Bash tool from windows
to connect to IBMi.


I have JS1.js to create Web server and listening to port and has some
actions to perform based on the request from client, when H1.html is used
in browser, It is requesting some action to perform and JS1.js is
executing
respective script. So far everything is good and my Bash session says
server running at http://IP:Port.


Now If I have another set of js & html, for example JS2.js and H2.html
for
different (Request and Response) tasks to do at the same time when JS1.js
is running, Not sure how I can do that as Bash session is still active
with
previous JS1.js and listening to the first client. Do I need to start
another Bash session? Or in other words How can I run multiple client
requests same time which need different server side scripts to be
executed?
Note that I am using Bash utility.


FYI, I am able to run another (For example H3.html) client’s request from
different tab successfully when JS1.js is active as H3.html does not have
any requests (scripts to execute at) to the server and instead it has
client side java script which is executing successfully.

​Thanks​
​Mallik​

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/opensource.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.