Closed backdooooor closed 11 years ago
I believe that is a question for elephant.io. How are you using this with Balloons.IO?
example usage elephant.io require_once $_SERVER['DOCUMENT_ROOT'].'/protected/models/library/ElephantIO/Client.php'; require_once $_SERVER['DOCUMENT_ROOT'].'/protected/models/library/ElephantIO/Payload.php'; use ElephantIO\Client as Elephant; class Chats { static public function Send(){
$elephant = new Elephant('http://127.0.0.1:6789', 'socket.io', 1, false, true, true); //$data['nickname']="backdoor"; //$data['provider']="1"; $data['mgs']="тестовый реквест"; $data['room_id']="3f796c?"; $username="backdoor"; $provider="1"; $data['userKey']=$provider.":".$username; //$data['room_id']="09a451?s"; $elephant->init(); $elephant->send( ElephantIO\Client::TYPE_EVENT, null, null, json_encode(array('name' => 'my msg', 'args' => $data)) ); $elephant->close();
}
}
How to connect to a socket of php I'm trying to connect through the library http://elephant.io/ but he wrote me
debug - cleared heartbeat interval for client undefined You can write a list of parameters required for a successful connection? thanks in advance