Simplified the socketIO viewer program.