i use ratchet to create chat. but i want to send message from controller to specific user. how i can access to $connections to find the user and sent the message
public function onOpen(ConnectionInterface $conn)
{
$this->connections[] = $conn;
}
i run server like this
$server = IoServer::factory(new HttpServer(
new WsServer(
new Notification($this->getContainer())
)
), 8080);
$server->run();