Subject: Moby Dam as WebSockets server.
I think instead of CGI pipes you can use the Websockets daemon as described at http://websocketd.com/
This program turns any program (written in whatever language) that uses STDIN/STDOUT into a WebSocket server.
For this to work, Moby Dam has to be changed to an input/output program (handling incoming and outgoing messages).
Or am I wrong?
Maybe the biggest challenge is to define and implement a new extended damexchange protocol for websockets. The design must be based on a browser client that does not need to know the rules of draughts. So a request to Moby Dam like "what are the legal moves" must be part of it.
I also worry how to handle multiple browser clients (maybe it must be limited to one?).
I have to study what is known at the "Protocols and tools" topic.