feat(core): Allow implementing different negotiation strategies

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

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.