When you open a web socket connection and leave it open and drop offline, wouldn't you think the Websocket would timeout on next attempted use ?
I haven't played with Websockets yet, but I don't think it would be reconnected automatically.
Now of course I haven't read up on Websockets yet, but I visualize it similar to disconnecting from the wall for a minute and losing a Telnet or FTP connection.
Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------
message: 7
date: Wed, 11 Jul 2012 17:20:35 -0500
from: Scott Klement <web400@xxxxxxxxxxxxxxxx>
subject: Re: [WEB400] Websockets on the IBMi
Hello,
I'm not Nathan, but I'd like to offer my opinion (below):
On 7/11/2012 5:03 PM, Kevin Turner wrote:
Are the things you are seeing just normal activity with any TCP/IP
socket connection? There has to be something going on at that low
level with any permanent connection to maintain the connection status.
With respect, maybe you are getting too bogged down in the detail.
The details he described in his message sound EXACTLY like keep-alives in a TCP connection. In other words.. I agree with you, Kevin, what he's seeing is normal TCP data, a part of the TCP protocol that nearly all communications on the Internet are built upon.
I completely agree with your assessment (not quoted for brevity).
Polling is not an efficient substitute for a server having the ability to push data to the client... A persistent technology like Websockets is going to be much more efficient.
I do think it's important to limit the use of technology like websockets to situations where a server-to-client push is required, and not to use them for other things (i.e. they are not a replacement for AJAX!)
But... in the right circumstances, websockets are an exciting technology!
As an Amazon Associate we earn from qualifying purchases.