Skip to content

Commit 3246d1f

Browse files
committed
Update example apps to useTLS
1 parent 5c1683d commit 3246d1f

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.pusher.client.example;
22

3-
import java.util.Map;
4-
5-
import com.google.gson.Gson;
6-
73
import com.pusher.client.Pusher;
84
import com.pusher.client.PusherOptions;
95
import com.pusher.client.channel.Channel;
@@ -47,7 +43,7 @@ public ExampleApp(final String[] args) {
4743

4844
// configure your Pusher connection with the options you want
4945
final PusherOptions options = new PusherOptions()
50-
.setForceTLS(true)
46+
.setUseTLS(true)
5147
.setCluster(cluster);
5248
Pusher pusher = new Pusher(channelsKey, options);
5349

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import com.pusher.client.Pusher;
66
import com.pusher.client.PusherOptions;
7-
import com.pusher.client.channel.PrivateChannelEventListener;
87
import com.pusher.client.channel.PusherEvent;
98
import com.pusher.client.channel.PresenceChannel;
109
import com.pusher.client.channel.PresenceChannelEventListener;
@@ -56,7 +55,7 @@ private PresenceChannelExampleApp(final String[] args) {
5655

5756
// configure your Pusher connection with the options you want
5857
final PusherOptions options = new PusherOptions()
59-
.setForceTLS(true)
58+
.setUseTLS(true)
6059
.setCluster(cluster)
6160
.setAuthorizer(authorizer);
6261
Pusher pusher = new Pusher(channelsKey, options);

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import com.pusher.client.Pusher;
44
import com.pusher.client.PusherOptions;
5-
import com.pusher.client.channel.Channel;
6-
import com.pusher.client.channel.ChannelEventListener;
75
import com.pusher.client.channel.PusherEvent;
86
import com.pusher.client.channel.PrivateChannel;
97
import com.pusher.client.channel.PrivateChannelEventListener;
@@ -54,7 +52,7 @@ public static void main(final String[] args) {
5452

5553
// configure your Pusher connection with the options you want
5654
final PusherOptions options = new PusherOptions()
57-
.setForceTLS(true)
55+
.setUseTLS(true)
5856
.setCluster(cluster)
5957
.setAuthorizer(authorizer);
6058
Pusher pusher = new Pusher(channelsKey, options);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.pusher.client.Pusher;
44
import com.pusher.client.PusherOptions;
5-
import com.pusher.client.channel.PrivateChannelEventListener;
65
import com.pusher.client.channel.PrivateEncryptedChannel;
76
import com.pusher.client.channel.PrivateEncryptedChannelEventListener;
87
import com.pusher.client.channel.PusherEvent;
@@ -60,7 +59,7 @@ private PrivateEncryptedChannelExampleApp(final String[] args) {
6059
final PusherOptions options = new PusherOptions()
6160
.setCluster(cluster)
6261
.setAuthorizer(authorizer)
63-
.setForceTLS(true);
62+
.setUseTLS(true);
6463
Pusher pusher = new Pusher(channelsKey, options);
6564

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

0 commit comments

Comments
 (0)