[Pianod] WebSockets

Perette Barella perette at barella.org
Sun Jan 13 21:58:12 PST 2013


So I've been mulling on the web access thing, and it's pretty clear WebSocket support is the Right Way to implements web clients going forward, with socket.io a sort of workaround to improvise until browser support is ubiquitous.  Chrome and Firefox have support, Safari has some old broken rough spec version.

So with Chrome or Firefox, using the tool here: http://www.websocket.org/echo.html
Give it this location: ws://perette.homeunix.org:4446/pianod

The code is rough and needs refinement before release, and FTR it's not actually part of pianod-- it's a websockets gateway I've built with the intent of solving this for everything at once.  It'll be at least a few more days before release.

Putting the WebSocket in text mode, you just send the command (the gateway adds the CRLF) and it returns each line as a separate packet, CR/LF/CRLF (whichever it finds) stripped.

Hopefully the rest of the browsers will catch up to RFC6455 soon so it'll be cross-browser.

Perette

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130114/2972b21e/attachment-0001.htm>


More information about the Pianod mailing list