socket.io-php-emitter icon indicating copy to clipboard operation
socket.io-php-emitter copied to clipboard

did not get anything in my backend

Open gautamsinh opened this issue 6 years ago • 0 comments

I can not get any response in my backend

Here is mycode

`require_once DIR . '/../vendor/autoload.php'; // Autoload files using Composer autoload include 'process.php';

use SocketIO\Emitter;

$emitter = new SocketIO\Emitter(array('port' => '5037', 'host' => 'myhost')); // broadcast can be replaced by any of the other flags $json['chat']="ded27825e3-0hus5w4vkg1h-664";
$json['message']="Form php"; $json['type']=1;
$json['toBotId']=538; // $json = json_encode($json, JSON_UNESCAPED_UNICODE); $emitter->broadcast->emit('sendChatNew', array('chat' => 'ded27825e3-hq7v4dxgsho-295', 'message' => 'very object','type' =>1,'toBotId' =>538));`

gautamsinh avatar Jan 16 '20 08:01 gautamsinh