[Seaside] Re: Listening to a comet app
laura.risani at gmail.com
Mon Mar 2 16:47:22 UTC 2015
Found the solution, if anyone faces the same problem.
The method String >> unescapePercentsWithTextEncoding: you get from Seaside
deprecated: '#unescapePercentsWithTextEncoding: has been replaced with
Just replace all with
^ ZnPercentEncoder new encode: self
and WAListenerAdaptor will work fine and Comet examples will run ok.
On Sat, Feb 28, 2015 at 3:59 PM, Laura Risani <laura.risani at gmail.com>
> Thank you Philippe and Paul for your answers.
> I'm just trying to build my first rather simple Seaside app based on DWDWS
> book, so i'd rather use Comet, for future use i'll consider WebSockets.
> I've been trying to run some of the examples at package Comet-Examples ,
> but i couldn't put up a streaming server adaptor. I've tried with WAListenerAdaptor
> and ZnZincStreamingServerAdaptor.
> In the case of WAListenerAdaptor ...
> WAListenerAdaptor sends a msg to HttpRequest who in turn sends
> String>>#unescapePercentsWithTextEncoding: which leads to a predebug
> window saying
> 'The method String>>unescapePercentsWithTextEncoding: has been deprecated.
> #unescapePercentsWithTextEncoding: has been replaced with ZnPercentEncoder'
> In the case of ZnZincStreamingServerAdaptor...
> An error 'Improper store into indexable object' is risen coming from aWAComboResponse
> aZdcSocketStream nextPut: $
> In both cases i started the adaptors sending to the respective class
> #startOn:portInteger. I'm using Pharo v3.
> I have loaded Comet , and just in case, Zinc and Kom , sending
> ConfigurationOfSeaside3 project stableVersion load:versionString.
> On Thu, Feb 26, 2015 at 5:57 PM, Philippe Marschall <
> philippe.marschall at gmail.com> wrote:
>> On Thu, Feb 26, 2015 at 12:15 AM, Paul DeBruicker <pdebruic at gmail.com>
>> > Because you're in pharo 3 it may be best to use Zinc and look into what
>> > says in this thread
>> AFAIK the Seaside Comet support never has been ported to Zinc (it's a
>> bit problematic since it wants to drive the listen loop). Zinc does
>> support WebSockets natively though.
>> > The Seaside book probably needs instructions to non-Comanche server
>> > adaptors.
>> The supported interface is the same on all adaptors. You just need to
>> load a different group from Metacello.
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside