2022-11-05 13:10:10 +00:00
|
|
|
# moxxmpp_socket
|
|
|
|
|
2022-11-08 15:58:36 +00:00
|
|
|
A socket for moxxmpp that implements the connection algorithm as specified by
|
|
|
|
[RFC6210](https://xmpp.org/rfcs/rfc6120.html) and [XEP-0368](https://xmpp.org/extensions/xep-0368.html),
|
|
|
|
while also supporting StartTLS and direct TLS.
|
|
|
|
|
|
|
|
In order to make this package independent of Flutter, I removed DNS SRV resolution from
|
|
|
|
the package. The `TCPSocketWrapper` contains a method called `srvQuery` that can be
|
|
|
|
overridden by the user. It takes the domain to query and a DNSSEC flag and is expected
|
|
|
|
to return the list of SRV records, encoded by `MoxSrvRecord` objects. To perform the
|
|
|
|
resolution, one can use any DNS library. A Flutter plugin implementing SRV resolution
|
|
|
|
is, for example, [moxdns](https://codeberg.org/moxxy/moxdns).
|
2022-11-05 13:10:10 +00:00
|
|
|
|
2023-01-10 11:25:56 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
Include the following as a dependency in your pubspec file:
|
|
|
|
|
|
|
|
```
|
|
|
|
moxxmpp_socket_tcp:
|
|
|
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
|
|
|
version: 0.1.2+9
|
|
|
|
```
|
|
|
|
|
2022-11-05 13:10:10 +00:00
|
|
|
## License
|
|
|
|
|
|
|
|
See `./LICENSE`.
|
2022-12-23 14:18:53 +00:00
|
|
|
|
|
|
|
## Support
|
|
|
|
|
|
|
|
If you like what I do and you want to support me, feel free to donate to me on Ko-Fi.
|
|
|
|
|
|
|
|
[<img src="https://codeberg.org/moxxy/moxxyv2/raw/branch/master/assets/repo/kofi.png" height="36" style="height: 36px; border: 0px;"></img>](https://ko-fi.com/papatutuwawa)
|