public function input($buffer, $connection)
    {
        if(empty($this->seckey)) {
            $this->seckey = $connection->listener->getHandler()->secKey;
        }
        
        if(!$connection->hasAttribute( $this->seckey )) {
            return $this->handshakeInput($buffer, $connection);
        }
        
        return $this->streamInput($buffer, $connection);
    }