How to redirect the message to another user in the workerman?

Reading the documentation I can not understand in Russian that does not really found. I want to input text on one page is instantly displayed on another, started using workerman, but can not doperet how to send it to another page to an authorized user!

Writing text and sending it to the server on странице_1
let ws = new WebSocket('ws://192.168.2.163:1000');
 var text = $('#text').val();
 ws.onopen = () => {
ws.send(text);
 };


Here's how it would be correct to specify the transmission of the text back to страницу_1, but on new страницу_2?
Receiving text on the server
require_once __DIR__ . '/vendor/autoload.php';
 use Workerman\Worker;

 $ws_worker = new Worker("websocket://192.168.2.163:1000");
 $ws_worker->count = 4;

$ws_worker->onMessage=function($connection,$data){
$connection->send($data);
};

 Worker::runAll();
The output in the console text from странице_1 on страницу_2
let ws = new WebSocket('ws://192.168.2.163:1000');

 ws.addEventListener('message', (event) => {
 console.log('Message from Server: '+event.data);
 });
workerman use only for translation text, not more. A database of stored messages, the registration of the customers all samobytnoe and working.

The question is how to fasten it to the stream of text before pressing send, it turns out another user will see it as printed text. It should work in two directions, but only one from customer to account Manager
March 23rd 20 at 18:53
1 answer
March 23rd 20 at 18:55
$ws_worker->onMessage = function($connection, $data) {
 foreach ($ws_worker->connections as $conn) {
 if ($conn != $connection) {
$conn->send($data);
}
}
};

Find more questions by tags PHP