src/ClientSideMonitoring/AbstractMonitoringMiddleware.php
private function sendEventData(array $eventData)
    {
        $socket = $this->prepareSocket();
        $datagram = json_encode($eventData);
        $result = socket_write($socket, $datagram, strlen($datagram));
        if ($result === false) {
            $this->prepareSocket(true);
        }
        return $result;
    }
private function sendEventData(array $eventData)
    {
        $socket = $this->prepareSocket();
        $datagram = json_encode($eventData);
        $result = socket_write($socket, $datagram, strlen($datagram));
        if ($result === false) {
            $this->prepareSocket(true);
        }
        return $result;
    }
private function sendEventData ( array $ eventData ) { $ socket = $ this -> prepareSocket ( ) ; $ datagram = json_encode ( $ eventData ) ; $ result = socket_write ( $ socket , $ datagram , strlen ( $ datagram ) ) ; if ( $ result === false ) { $ this -> prepareSocket ( true ) ; } return $ result ; }
Sends formatted monitoring event data via the UDP socket connection to
the CSM agent endpoint.

@param array $eventData
@return int
Sends formatted monitoring event data via the UDP socket connection to the CSM agent endpoint .