File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed
src/main/java/com/pusher/client/example Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 11package com .pusher .client .example ;
22
3- import java .util .Map ;
4-
5- import com .google .gson .Gson ;
6-
73import com .pusher .client .Pusher ;
84import com .pusher .client .PusherOptions ;
95import 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
Original file line number Diff line number Diff line change 44
55import com .pusher .client .Pusher ;
66import com .pusher .client .PusherOptions ;
7- import com .pusher .client .channel .PrivateChannelEventListener ;
87import com .pusher .client .channel .PusherEvent ;
98import com .pusher .client .channel .PresenceChannel ;
109import 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 );
Original file line number Diff line number Diff line change 22
33import com .pusher .client .Pusher ;
44import com .pusher .client .PusherOptions ;
5- import com .pusher .client .channel .Channel ;
6- import com .pusher .client .channel .ChannelEventListener ;
75import com .pusher .client .channel .PusherEvent ;
86import com .pusher .client .channel .PrivateChannel ;
97import 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 );
Original file line number Diff line number Diff line change 22
33import com .pusher .client .Pusher ;
44import com .pusher .client .PusherOptions ;
5- import com .pusher .client .channel .PrivateChannelEventListener ;
65import com .pusher .client .channel .PrivateEncryptedChannel ;
76import com .pusher .client .channel .PrivateEncryptedChannelEventListener ;
87import 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
You can’t perform that action at this time.
0 commit comments