Gamasutra had a short but useful article about implementing a WebSocket server. It’s apparently kindof like making the moose be a Web server for HTTP, except it ends up being faster and for custom messages.
Why would I want this? Well, I currently use Memory Mapped Files for Inter-process communication between the Moose and its Control Panel, and that’s supposed to be the fastest method possible.
But, Suppose I want regular webpages to be able to use Javascript, to send messages to the Moose, to have it say or do things. For that purpose, having the Moose to be listening for those kinds of messages, could solve a problem in a very nice way. As I learn more about the capabilities, and limitations, I’ll post more here.
January 26 2012 update:
- Here’s some extra modules for websockets, Socket.io
- Here’s WebSocket.org which has some demos.
