You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
What is wrong in my script??
The text was updated successfully, but these errors were encountered:
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??
The text was updated successfully, but these errors were encountered: