[Seaside-dev] Seaside-WebSocket

Philippe Marschall philippe.marschall at gmail.com
Sun Aug 1 12:55:16 UTC 2010


Hi

While discussing the cons of Comet on Comanche I noticed that Andreas
actually implemented WebSockets for WebClient. I went on and wrote a
small wrapper around it for Seaside.

What you need:
- The very latest Seaside-Canvas and Seaside-HTML5
- The latest WebClient, if you're on Pharo you need the attached one
- Seaside-WebSocket-Core, Seaside-WebSocket-WebClient,
Seaside-WebSocket-Examples from [1]
- Crhome, Firefox 4 or Safrai 5
- start the WAWebServerAdaptor on port 8080
- go to http://127.0.0.1:8080/websocket/chat

The important class is WAWebSocket which is an abstraction over a
WebSocket. Since WebClient is the only Smalltalk implementation of
WebSockets I'm aware of the protocol is modeled after it. There are
supposed to be web server specific subclasses / adaptors like
WAWebClientWebSocket. A new WAWebSocket is created with a server
specific factory object (WAWebSocketCreator) in the request context. I
want to say is you get a new WAWebSocket with:

aRequestContext newWebSocket

And yes, that stuff is experimental as you'll note from the stack
traces in the Transcript.

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

Cheers
Philippe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WebClient-Core-pmm.54.mcz
Type: application/octet-stream
Size: 81474 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20100801/6c42ccd0/WebClient-Core-pmm.54-0001.obj


More information about the seaside-dev mailing list