private function defaultFrame($command, array $headers, $body, $legacyMode)
    {
        $frame = new Frame($command, $headers, $body);
        $frame->legacyMode($legacyMode);
        return $frame;
    }