After looking up "mainstay" in the dictionary I can see I've used the word
poorly. (one of those moments where I feel really silly :-)

You are correct, Node.js does not *depend* on Web Sockets to work. What I
meant to say is that Node.js has seemingly made common** the concept that
many aspects of an app should be real-time updated. Or maybe better
stated, when user1 makes a change it is immediately reflected on user2's
screen without need for polling or page refreshes. Trello.com is a good
example of this (developed in Node.js).

**This is entirely my perception and shouldn't be considered factual.

I've also added the socket.io chat application to the nodejs repo for a
simple websocket/nodejs example:
https://bitbucket.org/litmis/nodejs/src/6f4655b53208/examples/websocket_chat/?at=master

Here*** is a video showing that Node.js chat app on IBM i. Note the
browser tools to inspect websocket traffic are still seemingly in their
infancy (FF doesn't support it and Chrome requires a change of focus to
update the Frames tab).

***http://www.screencast.com/t/rVgqcuuC


Aaron Bartell

On Fri, Dec 26, 2014 at 10:19 AM, Kevin Turner <
kevin.turner@xxxxxxxxxxxxxxxxxxxx> wrote:

I wouldn't say web sockets is the mainstay concept for node.js
applications. There are plenty of node.js based applications that have no
reliance on web sockets at all.

It is a topic that interests me however. We are currently using
Lightstreamer on the IBMi for web sockets to compliment our Apache based
web applications. Lightstreamer also has a built in node.js adaptor. I am
looking forward to getting node.js running to assess it.

Sent from my iPad

On 26 Dec 2014, at 15:19, Aaron Bartell <aaronbartell@xxxxxxxxx> wrote:

Hi Kelly,

Apache on IBM i still doesn't support Web Sockets and that is a mainstay
concept in Node.js apps. Note there is an Apache module that does Web
Sockets but it isn't included in the IBM i version yet (to my knowledge).

I have nginx running on IBM i based on the perzl.org AIX port (
http://www.perzl.org/aix/index.php?n=Main.Nginx) and nginx *does*
support
Web Sockets.

Here are some stats on webserver popularity:

http://news.netcraft.com/archives/2014/05/07/may-2014-web-server-survey.html

Btw, I've setup a site on bitbucket.org where Node.js collaboration can
happen more easily: https://bitbucket.org/litmis/nodejs

Why did I set it up?
- We need a place to easily post/refine code examples**.
- We need a place to log tasks needing to take place (i.e. document nginx
setup on IBM i***).
- We need to start conditioning the IBM i community on how to use modern
tooling for "social coding" (i.e. Git + fork/pull)****

NOTE: bitbucket.org is a free service for public repos. Sign-up for a
profile.

**https://bitbucket.org/litmis/nodejs/src
***https://bitbucket.org/litmis/nodejs/issue/2/nginx-port-instructions
****https://bitbucket.org/litmis/nodejs/wiki/contribute

Aaron Bartell

On Wed, Dec 24, 2014 at 8:21 PM, Kelly Cookson <KCookson@xxxxxxxxxxxx>
wrote:

What are people's thoughts about running web servers as reverse proxies
for Node.JS servers on the IBM i?

I assume one could set up an IBM HTTP server as a reverse proxy for a
Node.JS server. The IBM HTTP server could handle static content; the
Node.JS server could deliver web services for dynamic content.

I also assume WebSphere web server could also be set up as a reverse
proxy
for Node.JS. Would there be any benefits to using WebSphere instead of
the
IBM HTTP server as a reverse proxy on the IBM i?

I currently have NGINX set up as a reverse proxy for a Node.JS server
on a
windows machine (a learning environment). I like the fact that NGINX and
Node.JS are both event driven, making them fast and scalable. I'm not
sure
I will ever really need the scalability NGINX offers. IBM HTTP server
will
very likely meet all of my needs. Yet, out of curiosity, does anyone
know
if there are plans to port NGINX (or some other event driven web
server) to
the IBM i?

Thanks,

Kelly Cookson


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


________________________________

NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity to
which it is directed and may contain information that is privileged or
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying or
forwarding it, and notify the sender of the error by reply email or by
telephone, so that the sender's address records can be corrected.




--------------------------------------------------------------------------------


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



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.