Added MessageFactory for processing JSON message that come through the web socket.