Commit Graph

300 Commits

Author SHA1 Message Date
Mickael Remond
411619c2ef
Make channel type more specific (Packet instead of interface{})
Thanks to Genofire for spotting this
2019-06-10 10:58:41 +02:00
Mickael Remond
36e3379f5a
Update examples dependencies 2019-06-09 13:18:54 +02:00
Mickael Remond
bc2fad6693 Let component handle discovery for now 2019-06-09 13:08:25 +02:00
Mickael Remond
909cf753c9 Fix missing default channel creation 2019-06-09 13:08:25 +02:00
Mickael Remond
83ae778d33 Return errors on SendRaw 2019-06-09 13:08:25 +02:00
Mickael Remond
6fc12e9779 Fix import and test 2019-06-09 13:08:25 +02:00
Mickael Remond
2d95ca9384 Simplify component writing and make it similar to client 2019-06-09 13:08:25 +02:00
Mickael Remond
736a60cd1b Use StreamClient interface in StreamManager 2019-06-09 13:08:25 +02:00
Mickael Remond
021f6d3740 Refactor ClientManager into a more generic StreamManager 2019-06-09 13:08:25 +02:00
Mickael Remond
54dfa60f12 Clean-up 2019-06-09 13:08:25 +02:00
Mickaël Rémond
36900cee20
Update README.md 2019-06-08 19:16:20 +02:00
Mickael Remond
d4a8616da2
Move examples out of the cmd directory
They are now in _examples dir.
Fix #26
2019-06-08 11:34:09 +02:00
Mickael Remond
b7461ae97f
Do not reconnect on "connection replaced" stream errors
Fix #45
2019-06-08 11:15:51 +02:00
Mickael Remond
3689448c90
Adds an example directly in README file to get a feel of the API 2019-06-07 16:33:10 +02:00
Mickael Remond
0865f4e35c
Improves comments 2019-06-07 16:30:57 +02:00
Mickael Remond
eb2b506e3b
Add helpers to access full / bare jid as string 2019-06-07 16:25:18 +02:00
Mickael Remond
ae153e1ee5
Fix filename 2019-06-07 16:00:58 +02:00
Mickael Remond
1be04b0fba
Expose JID fields and rename to match XEP-0029 wording
See: XEP-0029 - Definition of Jabber Identifiers (JIDs)
https://xmpp.org/extensions/xep-0029.html
2019-06-07 15:56:41 +02:00
Mickael Remond
269f78b30d
Fix typo 2019-06-07 15:40:34 +02:00
Mickael Remond
2d8d4516fd
Handling basic unrecoverable errors
Fix #43
2019-06-07 15:23:23 +02:00
Mickael Remond
d45dd6a44a
Returned client will be nil if parameter are incorrect 2019-06-07 12:16:58 +02:00
Mickael Remond
b8fdc510a6
Further improvements on JID parsing 2019-06-07 11:40:31 +02:00
Martin/Geno
3ccc2680b0 Add typing support: XEP-0085: Chat State Notifications 2019-06-07 09:25:13 +02:00
Martin/Geno
3ea0e38f98 fix chat markers - id is a attribute not element 2019-06-07 09:24:00 +02:00
Mickael Remond
b7c21871b1
Add TODO 2019-06-06 19:12:31 +02:00
Mickael Remond
a451e64638
Improves comments 2019-06-06 12:01:49 +02:00
Mickaël Rémond
2f391fde80
Add Client Manager to monitor connection state and trigger reconnect (#39)
- Support for exponential backoff on reconnect to be gentle on the server.
- Clean up client by moving metrics and retry strategy to the connection manager.
- Update echo_client to use client manager
- Fix echo client XMPP message matching

Fixes #21
Improvements for #8
2019-06-06 11:58:50 +02:00
Mickael Remond
6cdadc95e9
Expose type registry for custom user-defined payload and extensions 2019-06-05 10:23:18 +02:00
Mickael Remond
b93a3a2550
Improve JID parsing
Clean up tests
Fix #1
2019-06-05 10:02:24 +02:00
Mickael Remond
80d8d6d231
Apply namespace fixes from #33 2019-06-05 08:51:21 +02:00
Martin/Geno
f034b74b54 fix import after moving 2019-06-05 08:41:40 +02:00
Martin/Geno
e7c57cad97 complete XEP-0333 support (with displayed) 2019-06-05 08:39:35 +02:00
Mickaël Rémond
4e597505f4
Remove unused import 2019-06-04 19:38:15 +02:00
Martin/Geno
15ceab9fc4 easy xmlformat output 2019-06-04 19:11:46 +02:00
Mickael Remond
4c23014051
Test clean up 2019-06-04 19:01:19 +02:00
Mickael Remond
06ee607f53
Run tests on Golang 1.12 2019-06-04 18:59:34 +02:00
Mickael Remond
0e110bc412 Fix vanity URL import 2019-06-04 18:47:44 +02:00
Mickael Remond
57ed387f4f Add support for Out of Band markers (OOB) from XEP-0066 2019-06-04 18:47:44 +02:00
Mickael Remond
67eaed98b6 Add support for chat markers parsing (XEP-0333) 2019-06-04 18:47:44 +02:00
Mickael Remond
7a4364be95 Refactor / clean up registry 2019-06-04 18:47:44 +02:00
Mickael Remond
836e723273 Refactor / extract the registry
Work in progress
2019-06-04 18:47:44 +02:00
Mickael Remond
b05efea81d Quick prototype of message extension
This is a work-in-progress, needs refactor.
2019-06-04 18:47:44 +02:00
Mickael Remond
f74f276a22 Fix me note 2019-06-04 18:47:44 +02:00
Mickaël Rémond
0f6ff41792
Merge pull request #22 from genofire/fix-component
[BUGFIX] no pointer in type case in component
2019-05-31 19:44:44 +02:00
Mickael Remond
b3a6429e0e
Check for errors in component connect. 2019-05-31 19:41:32 +02:00
Mickael Remond
e54260ec68
Clarify use of insecure flag 2019-05-31 19:22:36 +02:00
Mickael Remond
996feb1a40
Better documentation for config 2019-05-31 19:11:15 +02:00
Mickael Remond
b62533d005
Fix codecov badge 2019-05-31 19:10:42 +02:00
Mickael Remond
d31fc9b34c
Disable Codecov comments on PR 2019-05-31 19:08:20 +02:00
Mickaël Rémond
afe2017b8b
Merge pull request #23 from FluuxIO/xmpp-check
Merge XMPP check branch
2019-05-31 19:02:48 +02:00