Skip to content

Commit eecf2dd

Browse files
committed
Update example apps to use non deprecated method
1 parent eba41c6 commit eecf2dd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/com/pusher/client/example/ExampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ExampleApp(final String[] args) {
4747

4848
// configure your Pusher connection with the options you want
4949
final PusherOptions options = new PusherOptions()
50-
.setEncrypted(true)
50+
.setForceTLS(true)
5151
.setCluster(cluster);
5252
Pusher pusher = new Pusher(channelsKey, options);
5353

src/main/java/com/pusher/client/example/PresenceChannelExampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private PresenceChannelExampleApp(final String[] args) {
5656

5757
// configure your Pusher connection with the options you want
5858
final PusherOptions options = new PusherOptions()
59-
.setEncrypted(true)
59+
.setForceTLS(true)
6060
.setCluster(cluster)
6161
.setAuthorizer(authorizer);
6262
Pusher pusher = new Pusher(channelsKey, options);

src/main/java/com/pusher/client/example/PrivateChannelExampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void main(final String[] args) {
5454

5555
// configure your Pusher connection with the options you want
5656
final PusherOptions options = new PusherOptions()
57-
.setEncrypted(true)
57+
.setForceTLS(true)
5858
.setCluster(cluster)
5959
.setAuthorizer(authorizer);
6060
Pusher pusher = new Pusher(channelsKey, options);

src/main/java/com/pusher/client/example/PrivateEncryptedChannelExampleApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private PrivateEncryptedChannelExampleApp(final String[] args) {
6060
final PusherOptions options = new PusherOptions()
6161
.setCluster(cluster)
6262
.setAuthorizer(authorizer)
63-
.setEncrypted(true);
63+
.setForceTLS(true);
6464
Pusher pusher = new Pusher(channelsKey, options);
6565

6666
// set up a ConnectionEventListener to listen for connection changes to Pusher

0 commit comments

Comments
 (0)