Skip to content

Commit

Permalink
1.1.4: socket client improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiratkaya committed Aug 11, 2024
1 parent 43f2954 commit ba8a05d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public SocketClient(String apiKey, String serverToken) {
options.setWsPort(6001);
options.setWssPort(6002);
options.setChannelAuthorizer(authorizer);
options.setActivityTimeout(30000);
options.setActivityTimeout(10000);
options.setPongTimeout(5000);
options.setMaxReconnectionAttempts(100);
options.setMaxReconnectGapInSeconds(5);

// Create pusher instance
this.pusher = new Pusher(appKey, options);
Expand Down

0 comments on commit ba8a05d

Please sign in to comment.