Used to test mqtt protocol on server.