feat(core): Allow implementing different negotiation strategies

Fixes #27.
This commit is contained in:
PapaTutuWawa committed 2023-04-03 16:05:20 +02:00
1 parent 275d6e0346
commit 03328bdf7a
19 files changed
+442 -287

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ class _MyHomePageState extends State<MyHomePage> {
final XmppConnection connection = XmppConnection(
RandomBackoffReconnectionPolicy(1, 60),
AlwaysConnectedConnectivityManager(),
ClientToServerNegotiator(),
// The below causes the app to crash.
//ExampleTcpSocketWrapper(),
// In a production app, the below should be false.