We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4880075 commit d873996Copy full SHA for d873996
src/options.ts
@@ -219,6 +219,13 @@ class SenderOptions {
219
}
220
221
222
+ /**
223
+ * Resolves the protocol version, if it is set to 'auto'. <br>
224
+ * If TCP transport is used, the protocol version will default to 1.
225
+ * In case of HTTP transport the /settings endpoint of the database is used to find the protocol versions
226
+ * supported by the server, and the highest will be selected.
227
+ * @param options SenderOptions instance needs resolving protocol version
228
+ */
229
static async resolveAuto(options: SenderOptions) {
230
parseProtocolVersion(options);
231
if (options.protocol_version !== PROTOCOL_VERSION_AUTO) {
0 commit comments