ElephantIO / elephant.io

Send events to a socket.io server through PHP
https://elephantio.github.io/elephant.io/
MIT License
105 stars 34 forks source link

Create stdClass::$data ERROR!!!!!!!! #5

Closed tihiydo closed 10 months ago

tihiydo commented 10 months ago

Your library doesn't work.

             try
             {
                 $client = new Client(Client::engine(Client::CLIENT_4X, "http://45.9.149.230:5255"));
                 $client->initialize();
                 $client->of('/socket.io');
                 $client->emit('trader_update', ['uid_link' => $exchanges->uid_link]);
                 sleep(1);
                 $client->close();
             }
             catch (ElephantIO\Exception\ServerConnectionFailureException $e)
             {
                 echo $e->getErrorMessage();
             }

Error


Notice: Undefined property: stdClass::$data in /var/www/api/vendor/elephantio/elephant.io/src/Engine/SocketIO/Version1X.php on line 506
unable to perform namespace confirmation{ "status": true }