public function writeClientInit($compression = false, $ssl = false)
    {
        // MMM dd yyyy HH:mm:ss
        $date = date('M d Y H:i:s');

        $data = array(
            'MsgType' => 'ClientInit',
            'ClientDate' => $date,
            'ClientVersion' => 'clue/quassel-react alpha'
        );

        if ($this->protocol->isLegacy()) {
            $data += array(
                'ProtocolVersion' => 10,
                'UseCompression' => (bool)$compression,
                'UseSsl' => (bool)$ssl
            );
        }

        return $this->write($data);
    }
public function writeClientInit($compression = false, $ssl = false)
    {
        // MMM dd yyyy HH:mm:ss
        $date = date('M d Y H:i:s');

        $data = array(
            'MsgType' => 'ClientInit',
            'ClientDate' => $date,
            'ClientVersion' => 'clue/quassel-react alpha'
        );

        if ($this->protocol->isLegacy()) {
            $data += array(
                'ProtocolVersion' => 10,
                'UseCompression' => (bool)$compression,
                'UseSsl' => (bool)$ssl
            );
        }

        return $this->write($data);
    }
public function writeClientInit ( $ compression = false , $ ssl = false ) { // MMM dd yyyy HH:mm:ss $ date = date ( 'M d Y H:i:s' ) ; $ data = array ( 'MsgType' => 'ClientInit' , 'ClientDate' => $ date , 'ClientVersion' => 'clue/quassel-react alpha' ) ; if ( $ this -> protocol -> isLegacy ( ) ) { $ data += array ( 'ProtocolVersion' => 10 , 'UseCompression' => ( bool ) $ compression , 'UseSsl' => ( bool ) $ ssl ) ; } return $ this -> write ( $ data ) ; }
send client init info

expect either of ClientInitAck or ClientInitReject["Error"] in response

ClientInitAck["Configured"] === true means you should continue with
writeClientInit() next

ClientInitAck["Configured"] === false means you should continue with
writeCoreSetupData() next

@param boolean $compression (only for legacy protocol)
@param boolean $ssl         (only for legacy protocol)
@return boolean
send client init info