MessageParser used in SocketClient.