An implementation of the web socket server mentioned in StackOverflow question 17534033.