rcorniere
e59a86c380
Refactor tests
5 years ago
rcorniere
8798ff6fc1
- Changed IQ stanzas to pointer semantics
...
- Fixed commands from v 0.4.0 and tests
- Added primitive Result Sets support (XEP-0059)
5 years ago
remicorniere
94aceac802
Changed "Disconnect" to wait for the closing stream tag. ( #141 )
...
Updated example with a README.md and fixed some logs.
5 years ago
remicorniere
1822089db6
Tests for Component and code style fixes ( #129 )
...
* Tests for Component and code style fixes
5 years ago
Mickael Remond
6aa1e668ee
Fix issues after refactor
...
Relates to #126
5 years ago
Wichert Akkerman
eda5c23c54
Add SendIQ to StreamClient and Sender
...
This makes it possible to use SendIQ from PostConnect and route handlers.
5 years ago
Martin/Geno
6f9808fe16
fix(doc): typos
5 years ago
Mickael Remond
3de99e0e0e
Add initial support for stream management
...
For now it support enabling SM, replying to ack requests from server,
and trying resuming the session with existing Stream Management state.
5 years ago
Mickael Remond
9577036327
Add support for self-signed certificates
5 years ago
Mickael Remond
318e5e8a50
Postconnect method should receive an xmpp.Sender and not directly a client
...
Fixes #80
5 years ago
Mickael Remond
428787d7ab
Refactor and move parsing and stanza to a separate package
5 years ago
genofire
d9fdff0839
Add constants (enumlike) for stanza types and simplify packet creation ( #62 )
...
* Add constants (enumlike) for stanza types
* NewIQ, NewMessage and NewPresence are now initialized with the Attrs struct
* Update examples
* Do not export backoff code. For now, we do not need to expose backoff in the documentation
* Make presence priority an int8
5 years ago
Mickael Remond
4d015e5b29
With go modules, we should be able to remove import comments
5 years ago
Mickael Remond
9db33d5792
Introduce Sender interface to abstract client sending in router handlers
5 years ago
Mickael Remond
b05e68c844
Add router to make it easier to set up routing info
...
- Using the router, the dispatch is not done anymore by receiving from
receive channel, but by registering callback functions in routers,
with matchers.
- Make IQPayload a real interface to make it easier to match namespaces.
- The StreamManager Run command is now blocking, waiting for StreamManager
to terminate.
5 years ago
Mickael Remond
736a60cd1b
Use StreamClient interface in StreamManager
5 years ago
Mickael Remond
021f6d3740
Refactor ClientManager into a more generic StreamManager
5 years ago