But the overhead is not noticeable to humans; maybe a millisecond or two.

But multiply that by many hundreds of requests per client and it adds up.
Depending on the app it might not be noticeable, but as soon as you get
into apps like GoogleDocs where you can have many people in the same
document and see each others changes in real-time, well, then the requests
to the server start adding up really fast.

That's just my take.

A brief search turned this up:
https://github.com/disconnect/apache-websocket/

Aaron Bartell
www.MowYourLawn.com/blog
www.OpenRPGUI.com
www.SoftwareSavesLives.com



On Wed, Jul 11, 2012 at 11:33 AM, Nathan Andelin <nandelin@xxxxxxxxx> wrote:

Why would you need a separate server for Web Sockets? Why can't a Web
Socket client connect to the IBM i HTTP Server? The Apache Server
communicates via sockets. It supports persistent connections. Has anyone
tried it?

I don't see much difference between Web Socket and XMLHTTPRequest objects,
except the latter carries some overhead in the form of request and response
headers. But the overhead is not noticeable to humans; maybe a millisecond
or two.

-Nathan.

From: Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
To: 'Web Enabling the AS400 / iSeries' <web400@xxxxxxxxxxxx>
Sent: Wednesday, July 11, 2012 6:13 AM
Subject: [WEB400] Websockets on the IBMi

Has anyone else got anything working on the IBMi with regard to websockets?

I have just completed the first phase of integrating Renaissance with a
jWebsocket server on the i and so far so good. It seems to work pretty well
- apart from the fact that I cannot get any life out of Safari. Also, IE
doesn't support websockets until IE10, so that uses a flash-bridge instead
at the moment - but that works pretty well too.

I picked jWebsocket (www.jwebsocket.org<http://www.jwebsocket.org>)
because it is written in java and therefore runs almost straight out of the
box on the i - and the client-side stuff provided links nicely with
jQuery. All I had to do was create my own plug-in for the server that
makes use of jt400native.jar to enable data queues and direct calls.

My only concern with the jWebsocket server is that it appears to have gone
quiet. No new beta versions since May this year. I am wondering if I have
backed the wrong horse for my first delve into this. This is the main
reason for me canvassing feedback on what other people are up to with
websockets.

For anyone interested, there is a noddy demo function available at
http://rns.coraltree.co.uk on the Developers Examples and Demos menu
(user id and password both "demo") that I have been using to test things.
The demo is not very exciting (until you appreciate the avenues that
websockets opens up for you). Most of the time the jWebsocket server is
active but I occasionally shut it down while testing.

________________________________
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
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the AS400 / 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 AS400 / 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.