Closed nilesh-darji closed 1 month ago
Hi.
If you are trying to connect using StartTLS
, you need to declare the SecurityContext
via the context
property (ensure that you have declared the SSL certificate and corresponding key); otherwise, you cannot upgrade your socket connection due to the lack of SSL pinning in the Dart language. Setting DisableStartTLS
to true means that you will not upgrade your connection later, so it will continue over a non-secure socket channel. Additionally, ensure that you are providing a secure port if you are using DirectTLS (in ejabberd server, this port is 5223 by default).
On the other hand, if you are using Whixp in Flutter, make sure you have declared the internal database path inside the project files (you can use path_provider
to get the documents path and address this path in the declaration. e.g. "documents_path/whixp"). If you are using Dart, just provide a folder name, and it will automatically create a folder under the given name (e.g., “whixp”).
Hii, great project.
Logs
Sample Code
I am using ejabberd server