File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/main/java/com/pusher/client Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ private PusherEvent decryptMessage(String message) {
185
185
encryptedReceivedData .getCiphertext (),
186
186
encryptedReceivedData .getNonce ());
187
187
188
- receivedMessage .replace ("data" , decryptedData );
188
+ receivedMessage .put ("data" , decryptedData );
189
189
190
190
return new PusherEvent (receivedMessage );
191
191
}
Original file line number Diff line number Diff line change 8
8
9
9
import javax .net .ssl .SSLContext ;
10
10
import javax .net .ssl .SSLException ;
11
+ import javax .net .ssl .SSLParameters ;
11
12
import javax .net .ssl .SSLSocketFactory ;
12
13
13
14
import org .java_websocket .client .WebSocketClient ;
@@ -89,4 +90,14 @@ public void onError(final Exception ex) {
89
90
public void removeWebSocketListener () {
90
91
webSocketListener = null ;
91
92
}
93
+
94
+ @ Override
95
+ protected void onSetSSLParameters (SSLParameters sslParameters ) {
96
+ // https://github.com/TooTallNate/Java-WebSocket/wiki/No-such-method-error-setEndpointIdentificationAlgorithm
97
+ try {
98
+ super .onSetSSLParameters (sslParameters );
99
+ } catch (NoSuchMethodError error ) {
100
+ // if this is being called on an android device pre-24 this api isn't available
101
+ }
102
+ }
92
103
}
You can’t perform that action at this time.
0 commit comments