Skip to content

Commit 256fb86

Browse files
authored
Update to allow NOTICEs on connect. (#496)
1 parent c627326 commit 256fb86

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

connection/connection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ export class Connection {
434434
}
435435
case INCOMING_AUTHENTICATION_MESSAGES.PARAMETER_STATUS:
436436
break;
437+
case INCOMING_AUTHENTICATION_MESSAGES.NOTICE:
438+
break;
437439
default:
438440
throw new Error(`Unknown response for startup: ${message.type}`);
439441
}

connection/message_code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const INCOMING_AUTHENTICATION_MESSAGES = {
2424
BACKEND_KEY: "K",
2525
PARAMETER_STATUS: "S",
2626
READY: "Z",
27+
NOTICE: "N",
2728
} as const;
2829

2930
export const INCOMING_TLS_MESSAGES = {

0 commit comments

Comments
 (0)