Skip to content

Commit

Permalink
fix(channel): increase pong timeout 3 times (to 15 seconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Oct 21, 2022
1 parent 7777144 commit d03ec1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/channel/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ interface ChannelMessageError {

// Send ping message every 10 seconds
const PING_TIMEOUT_MS = 10000;
// Close connection if pong message is not received within 5 seconds
const PONG_TIMEOUT_MS = 5000;
// Close connection if pong message is not received within 15 seconds
const PONG_TIMEOUT_MS = 15000;

export function emit(channel: Channel, ...args: any[]): void {
const [eventName, ...rest] = args;
Expand Down

0 comments on commit d03ec1c

Please sign in to comment.