Seaside Websocket support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside Websocket support

Timothy James Ziebart
Hello everyone.    

I am looking to build a chat application for my website using web
sockets as Zinc now supports web sockets.  I am looking for help in
getting the  Zinc Web Socket support working in Seaside.

I noticed there is a package called Seaside-WebSocket-Examples.  I
installed the package and it will require some tweaking to work.  I am
willing to contribute the work but I will require assistance.  Is this
the best approach or has anyone gone about it a different way?  
Seeking your ever valuable advice.

Thank you in advance.

Tim

--
Timothy Ziebart
I so run, not as at an uncertainty. I so fight, not as one beating the air.
http://www.churchmilitant.org

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Websocket support

Philippe Marschall
On Thu, Nov 15, 2012 at 2:18 AM, Tim Ziebart <[hidden email]> wrote:

> Hello everyone.
>
> I am looking to build a chat application for my website using web
> sockets as Zinc now supports web sockets.  I am looking for help in
> getting the  Zinc Web Socket support working in Seaside.
>
> I noticed there is a package called Seaside-WebSocket-Examples.  I
> installed the package and it will require some tweaking to work.  I am
> willing to contribute the work but I will require assistance.  Is this
> the best approach or has anyone gone about it a different way?
> Seeking your ever valuable advice.

There's something called Seaside-WebSocket-Core in [1]. It's an
abstraction over the WebSocket support in Swazoo and WebClient. It
certainly could be extended to support Zinc. Having that said I'm not
really sure how well this fits into Seaside. The request/response
model is quite central to Seaside and not sure wether it makes sense
to run WebSockets inside a request context. OTOH this might be another
nice application for continuations. I guess we'll just have to
experiment a bit.

 [1] http://www.squeaksource.com/Seaside30Addons.html

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Websocket support

Kai-Uwe Pielka
If you don't mind that your server is polled on a regular base, just place this line into the the header part of your html page :

<META HTTP-EQUIV="REFRESH" CONTENT="10">

Then the browser refreshes the page automatically every 10 seconds.

Kai-Uwe


Am 15.11.2012 um 15:43 schrieb Philippe Marschall <[hidden email]>:

On Thu, Nov 15, 2012 at 2:18 AM, Tim Ziebart <[hidden email]> wrote:

> Hello everyone.
>
> I am looking to build a chat application for my website using web
> sockets as Zinc now supports web sockets.  I am looking for help in
> getting the  Zinc Web Socket support working in Seaside.
>
> I noticed there is a package called Seaside-WebSocket-Examples.  I
> installed the package and it will require some tweaking to work.  I am
> willing to contribute the work but I will require assistance.  Is this
> the best approach or has anyone gone about it a different way?
> Seeking your ever valuable advice.

There's something called Seaside-WebSocket-Core in [1]. It's an
abstraction over the WebSocket support in Swazoo and WebClient. It
certainly could be extended to support Zinc. Having that said I'm not
really sure how well this fits into Seaside. The request/response
model is quite central to Seaside and not sure wether it makes sense
to run WebSockets inside a request context. OTOH this might be another
nice application for continuations. I guess we'll just have to
experiment a bit.

[1] http://www.squeaksource.com/Seaside30Addons.html

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside Websocket support

Julian Fitzell-2
In reply to this post by Philippe Marschall
I've been playing around with request handlers, sessions, and continuations over the past week and was thinking I might poke around with WebSockets at some point to see how they'd fit in. I'll share if I do...

On Thu, Nov 15, 2012 at 2:43 PM, Philippe Marschall <[hidden email]> wrote:
On Thu, Nov 15, 2012 at 2:18 AM, Tim Ziebart <[hidden email]> wrote:
> Hello everyone.
>
> I am looking to build a chat application for my website using web
> sockets as Zinc now supports web sockets.  I am looking for help in
> getting the  Zinc Web Socket support working in Seaside.
>
> I noticed there is a package called Seaside-WebSocket-Examples.  I
> installed the package and it will require some tweaking to work.  I am
> willing to contribute the work but I will require assistance.  Is this
> the best approach or has anyone gone about it a different way?
> Seeking your ever valuable advice.

There's something called Seaside-WebSocket-Core in [1]. It's an
abstraction over the WebSocket support in Swazoo and WebClient. It
certainly could be extended to support Zinc. Having that said I'm not
really sure how well this fits into Seaside. The request/response
model is quite central to Seaside and not sure wether it makes sense
to run WebSockets inside a request context. OTOH this might be another
nice application for continuations. I guess we'll just have to
experiment a bit.

 [1] http://www.squeaksource.com/Seaside30Addons.html

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside