vukoye / xmpp_dart

Lightweight XMPP client library written in Dart
Apache License 2.0
83 stars 64 forks source link

XmppConnectionState.ForcefullyClosed #71

Open Freelenzer opened 2 years ago

Freelenzer commented 2 years ago

My Connection gets killed all the time. How can I get detailed infos?

Thanks in advance for your help.

[log] D/[ReconnectionManager]: TimeOut is: 2000 reconnection counter 0 [log] D/[Connection]: State: XmppConnectionState.Reconnecting [log] D/[Connection]: State: XmppConnectionState.SocketOpening [log] D/[Connection]: State: XmppConnectionState.SocketOpened [log] ---Xmpp Sending:--- [log] <?xml version='1.0'?> <stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' to='jabber.econix.de' xml:lang='en'

[log] D/[Connection]: Handle connection done [log] D/[Connection]: State: XmppConnectionState.ForcefullyClosed [log] D/[ReconnectionManager]: Connection forcefully closed! [log] D/[ReconnectionManager]: TimeOut is: 2000 reconnection counter 0

theowenyoung commented 2 years ago

Same here...

theowenyoung commented 2 years ago

I think it's a bug from WebSocket supporting recently ,

I changed to https://github.com/vukoye/xmpp_dart/commit/8eeec6c1912eb2cf3703763f2644bdc79f5b1abe just worked fine.

I try to find the problem, but I can't, (I'm new to flutter :( ),

https://github.com/vukoye/xmpp_dart/blob/1b842dc1257ca533942f89018a2779d77d24bf71/lib/src/connection/XmppWebsocketIo.dart#L13-L15

for starttls, here shouldn't be false.

eldhomt commented 2 years ago

Same for me. Added the error log under the Add Web-Platform support