The other replies are good, so I'll just toss in the final piece of info... SOAP uses HTTP and deliberately keeps it connectionless. This allows requests to be bounced through proxies and other tricks. This is exactly what you don't want but the solution by AM covers most situations, unless your users are behind proxies (very likely, in this day and age).

The SOAP mailing list was full of people complaining ( last year some time) about the lack of what you wanted, but looking at the design goals your desired feature had to be sacrificed. Perhaps you could look at other approaches to lightening the load on the server - a "are there new messages for me?" function combined with an exponential delay when there are no messages might be a start.

Keep in mind that even if you write your own protocol (not too hard if you put it in a module and abstract it properly) a lot of firewalls will swat the connection. HTTP is about the only thing you can rely on getting through.

That's why I always use the web-page chat client for PM when I'm at work.

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Re: SOAP::Lite Chat by jepri
in thread SOAP::Lite Chat by dooberwah

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.