Skip to content

Commit

Permalink
bump ws timeout limit and set log to info
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzni2 committed Jan 27, 2025
1 parent da71a85 commit a8ee5a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const BaseSettingsDefinition = {
'The maximum amount of time in milliseconds to wait for the websocket connection to open (including custom open handler)',
type: 'number',
default: 10_000,
validate: validator.integer({ min: 500, max: 30_000 }),
validate: validator.integer({ min: 500, max: 180000 }),
},
CACHE_POLLING_MAX_RETRIES: {
description:
Expand Down
2 changes: 1 addition & 1 deletion src/transports/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class WebSocketTransport<
return {
// Called when the WS connection is opened
open: async (event: WebSocket.Event) => {
logger.debug(`Opened websocket connection. (event type ${event.type})`)
logger.info(`Opened websocket connection. (event type ${event.type})`)
if (this.config.handlers.open) {
await this.config.handlers.open(connection, context)
logger.debug('Successfully executed connection opened handler')
Expand Down

0 comments on commit a8ee5a5

Please sign in to comment.