public function write($data)
    {
        return $this->stream->write(
            $this->splitter->writePacket(
                $this->protocol->serializeVariantPacket($data)
            )
        );
    }