<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>You're suggesting long polling (correct term?) with periodic ajax requests?<br><br>RS<br><br>> From: renggli@gmail.com<br>> Date: Thu, 1 Apr 2010 23:46:13 +0200<br>> Subject: Re: [Seaside] Problems with my dishwasher.. I mean.. Comet<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> > The first is, how do the pushers work? I tried throwing references to one<br>> > around to just one, but I think it actually needs to be rendered to the page<br>> > (load script) as per the example.<br>> <br>> Pushers send Javascript code to all connected clients.<br>> <br>> > And the last one for now ;) is how can I restrict relevent data to the<br>> > sessions that "care" about it?<br>> > If a client pushes some javascript, but only<br>> > a few other clients need that javascript, I would prefer to only give that<br>> > script to those clients, or am I thinking on the wrong lines here?<br>> <br>> Currently there is no support for filtering or sending messages to<br>> particular sessions only, although that would be technically easily<br>> possible. We need to improve the Comet package to be able to do that.<br>> <br>> For now your application could provide multiple pushers and sessions<br>> register to the one they are interested in.<br>> <br>> > Should I do something more along the lines of the CTCounter example where,<br>> > when something in the data structure changes, then the clients can choose to<br>> > do something about it?<br>> <br>> Personally I suggest (although the demo examples don't do this) that<br>> you use Comet only to notify about changes, not to transport large<br>> amounts of data. Like this the clients can decide themselves what they<br>> want to do and request the actual update from the server if they need<br>> it.<br>> <br>> Lukas<br>> <br>> -- <br>> Lukas Renggli<br>> www.lukas-renggli.ch<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3' target='_new'>Get started.</a></body>
</html>