fix(example): Comform examples to the new TCPSocketWrapper constructor

This commit is contained in:
PapaTutuWawa committed 2023-10-04 22:15:24 +02:00
1 parent 93e9d6ca22
commit f287d501ab
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -3,6 +3,8 @@ import 'package:moxxmpp/moxxmpp.dart';
import 'package:moxxmpp_socket_tcp/moxxmpp_socket_tcp.dart';
class TestingTCPSocketWrapper extends TCPSocketWrapper {
TestingTCPSocketWrapper() : super(true);
@override
bool onBadCertificate(dynamic certificate, String domain) {
return true;
+1 -1
View File
@@ -30,7 +30,7 @@ void main(List<String> args) async {
TestingReconnectionPolicy(),
AlwaysConnectedConnectivityManager(),
ClientToServerNegotiator(),
ExampleTCPSocketWrapper(parser.srvRecord),
ExampleTCPSocketWrapper(parser.srvRecord, true),
)..connectionSettings = parser.connectionSettings;
// Generate OMEMO data