public function send(Message $message)
    {
        /* @var AppleMessage $message */
        $buildMessage = $this->buildMessage($message);
        $this->streamSocket->connect();
        $bytesSend = $this->streamSocket->write($buildMessage);
        if (strlen($buildMessage) !== $bytesSend) {
            $this->streamSocket->disconnect();
            throw new ConnectionExceptionImpl();
        }
        usleep(self::SEND_INTERVAL);
    }
public function send(Message $message)
    {
        /* @var AppleMessage $message */
        $buildMessage = $this->buildMessage($message);
        $this->streamSocket->connect();
        $bytesSend = $this->streamSocket->write($buildMessage);
        if (strlen($buildMessage) !== $bytesSend) {
            $this->streamSocket->disconnect();
            throw new ConnectionExceptionImpl();
        }
        usleep(self::SEND_INTERVAL);
    }
public function send ( Message $ message ) { /* @var AppleMessage $message */ $ buildMessage = $ this -> buildMessage ( $ message ) ; $ this -> streamSocket -> connect ( ) ; $ bytesSend = $ this -> streamSocket -> write ( $ buildMessage ) ; if ( strlen ( $ buildMessage ) !== $ bytesSend ) { $ this -> streamSocket -> disconnect ( ) ; throw new ConnectionExceptionImpl ( ) ; } usleep ( self :: SEND_INTERVAL ) ; }
Send a message without waiting on response.

@param Message $message

@throws ConnectionException
@throws ConnectionHandlerException
Send a message without waiting on response .