You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ScClient/client.swift
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -197,12 +197,19 @@ public class ScClient : Listener, WebSocketDelegate {
197
197
socket.disableSSLCertValidation = value
198
198
}
199
199
200
-
// uses the .cer files in your app's bundle
200
+
/**
201
+
Uses the .cer files in your app's bundle
202
+
*/
201
203
publicfunc useSSLCertificate(){
202
204
socket.security =SSLSecurity()
203
205
}
204
206
205
-
// The usePublicKeys bool is whether to use the certificates for validation or the public keys. The public keys will be extracted from the certificates automatically if usePublicKeys is choosen.
207
+
/**
208
+
You load either a Data blob of your certificate or you can use a SecKeyRef if you have a public key you want to use.
209
+
- Parameters:
210
+
- data: Data blob of your certificate.
211
+
- usePublicKeys: The usePublicKeys bool is whether to use the certificates for validation or the public keys.
0 commit comments