I've done this too, but not with async... just polling.

Each transaction/page on the web system has a unique ID that is available
to the backend system. The backend server program updates a file with
status changes with simple ILE subprocedures. ie,

#status_setStatus(ID:'Processing record n of n....');

The web system polls using that transaction ID to get the most recent
status while an AJAX function is running. So, we can easily program status
updates for any request (which are normally done via AJAX).

Normally we set this to poll every 5 seconds during an AJAX call. It could
really be set to anything, though.

Works slick, and if you use Gmail and open up a developer tools when
entering an email, or even with Google docs you can see it does something
very similar to save progress while you type so you don't lose the message.


Both simple and effective.

Brad
www.bvstools.com

On Tue, Oct 7, 2014 at 11:38 AM, Matt Olson <Matt.Olson@xxxxxxxx> wrote:

SignalR takes care of this for you. We have been using websockets with
SignalR and ASP .NET and IIS for over a year now in one of our programs
that required realtime progress bar updates for very long running querys.

Obviously there are many, many more cool uses for this, but SignalR and
the ASP .NET tooling for it makes it a couple line affair to setup to make
the server (IIS) and browser (running SignalR) to communicate
bi-directionally.

Very cool stuff.



-----Original Message-----
From: Bradley Stone [mailto:bvstone@xxxxxxxxx]
Sent: Tuesday, October 07, 2014 11:29 AM
To: Midrange Systems Technical Discussion
Subject: Re: IBM announces new language environment - Node.js for i

Bidirectional... sounds cool, but also a possible logistical nightmare
keeping everything in sync. :)

Brad
www.bvstools.com

On Tue, Oct 7, 2014 at 11:25 AM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

Come on you experts

HTTP is a single direction connection - websockets i bidirectional -
that the big difference



On Tue, Oct 7, 2014 at 6:20 PM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:

For 7.2, IBM upgraded Apache to 2.4
http://www-03.ibm.com/systems/power/software/i/http/

WebSocket support in Apache is done via a mod (module):
http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html

As far as I know that mod isn't included with the IBMi Apache v2.4
port.


Aaron Bartell

On Tue, Oct 7, 2014 at 11:16 AM, Buck Calabro <kc2hiz@xxxxxxxxx>
wrote:

On 10/7/2014 11:52 AM, Aaron Bartell wrote:
One application for Node.js that readily comes to mind is a Web
socket
server

At last check IBM i's version of Apache doesn't support Web
Sockets.
This
spring I submitted a requirement to IBM to start supporting it.

For 7.2, IBM upgraded Apache to 2.4
http://www-03.ibm.com/systems/power/software/i/http/
--buck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at
http://archive.midrange.com/midrange-l.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.