require_once __DIR__.'/vendor/autoload.php';
// use \GameNet;
$rpc = new \GameNet\Jabber\RpcClient([
'server' => 'http://127.0.0.1:4560',
'host' => 'lakki.com',
'debug' => false,
]);
//Create 2 new users with name `Ivan` and `Petr` with password `someStrongPassword`
$rpc->createUser('Ivan', 'someStrongPassword');
When I'm trying to excute the script I was getting following error
Argument 1 passed to fXmlRpc\Transport\HttpAdapterTransport::__construct() must be an instance of Http\Message\MessageFactory, instance of Ivory\HttpAdapter\CurlHttpAdapter given, called in /var/www/html/php-jabber-rpc/lib/GameNet/Jabber/RpcClient.php on line 140 and defined in /var/www/html/php-jabber-rpc/vendor/lstrojny/fxmlrpc/src/fXmlRpc/Transport/HttpAdapterTransport.php on line 39
I am using the following code
When I'm trying to excute the script I was getting following error
What is wrong in my script??