<br><div>Thanks Julian!  This works just fine and is definitely less of a jury-rig!  ---John</div><div><br></div><div>render: aRenderable on: aStream<br></div>&quot;Render aRenderable on aStream.&quot;<br><br>| document html codec |<br>
<br>codec := [ self requestContext codec ]<br>           on: WARequestContextNotFound<br>           do: [ WANullCodec new ].<br><br>document := JSDocument on: aStream codec: codec.<br><br>document open.<br>canvas context document: document during: [<br>
html := canvas species context: canvas context.<br>html render: aRenderable; flush.<br><div>document close ]<br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 4:42 PM, John Chludzinski <span dir="ltr">&lt;<a href="mailto:john.chludzinski@gmail.com">john.chludzinski@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>If I receive an external message (not a request from a browser) thru a socket telling me that all the presentation apps that share a particular Comet pusher need to advance to the next slide.  How should this best be done?</div>

<div><br></div><div>My solution:  I saved a reference to one of the presentation apps and send it the message #nextPage (from a Workspace window).  This failed (got a walkback) in JSObject&gt;&gt;render:on: at</div><div>
<br>
</div><div>      document := JSDocument on: aStream codec: self requestContext codec.</div><div><br></div><div>Since &#39;codec&#39; is never used in JSDocument I changed the line above to:</div><div><br></div><div>      document := JSDocument on: aStream codec: #useless.<br>

<br></div><div>This works BUT is it a reasonable approach?  Or is there a canonical solution to the problem of external events?<i><br></i></div><font color="#888888"><font color="#888888"><div><br></div><div>---John</div>

</font><br>
</font></blockquote></div><br>