Jerome Sautret
6e2ba9ca57
Remove context leak warnings
2019-12-26 15:51:19 +01:00
remicorniere
94aceac802
Changed "Disconnect" to wait for the closing stream tag. ( #141 )
...
Updated example with a README.md and fixed some logs.
2019-12-26 14:47:02 +01:00
rcorniere
3c9b0db5b8
Fixed decoder usage.
...
Decoders have internal buffering, and creating many on a single TCP connection can cause issues in parsing exchanged XML documents.
2019-12-10 17:53:42 +01:00
rcorniere
fd48f52f3d
Using precisely sized buffers for tcp tests
2019-12-10 15:10:19 +01:00
CORNIERE Rémi
e675e65a59
Added callback to process errors after connection.
...
Added tests and refactored a bit.
2019-12-09 16:32:33 +01:00
Wichert Akkerman
f8c992a385
Fix updating of EventManager.CurrentState
...
The EventManager methods did not use a pointer as receiver, which
caused updated of CurrentState to be lost.
2019-12-09 12:30:37 +01:00
Wichert Akkerman
7fa4b06705
Move address into transport config
...
This makes it possible to use a factory function to create a transport of the right type and not having to repeat the address when calling Transport.Connect()
2019-10-28 16:38:10 +01:00
Mickael Remond
9c8353d081
Introduce Credential structure to define auth type
...
For now we are planning to support Password and OAuthToken.
In the future, we would like to add certificate-based authentication.
2019-10-01 11:40:31 +02:00
Mickael Remond
cca0919b8a
Fix session element parsing on IQ
2019-06-29 17:39:19 +02:00
Mickael Remond
40e907e8ee
Clean-up & refactor
2019-06-29 16:49:54 +02:00
Mickael Remond
428787d7ab
Refactor and move parsing and stanza to a separate package
2019-06-26 17:14:52 +02:00
Mickael Remond
af0ae525b8
An IQ can only have a single payload
...
"An IQ stanza of type "get" or "set" MUST contain exactly one
child element, which specifies the semantics of the particular
request."
2019-06-19 14:03:42 +02:00
Mickael Remond
4d015e5b29
With go modules, we should be able to remove import comments
2019-06-18 16:28:30 +02:00
Mickael Remond
715bf6976f
Fix client tests
2019-06-18 14:36:56 +02:00
Mickael Remond
709a95129e
Clean up and fix StartTLS feature discovery
...
Required field was never set to true
2019-06-10 16:27:52 +02:00
Mickael Remond
021f6d3740
Refactor ClientManager into a more generic StreamManager
2019-06-09 13:08:25 +02:00
Mickael Remond
5eae7f4ef7
Move project to gosrc.io/xmpp
...
The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
2018-12-26 18:50:01 +01:00
Mickael Remond
fa5590e921
Rename Options to Config
2018-09-26 16:25:04 +02:00
Mickael Remond
d33490cdc0
Work-in-progress on dynamic IQ parsing
2018-01-16 22:33:21 +01:00
Mickael Remond
dade3504f0
Improve generic IQ parsing
2018-01-15 12:28:34 +01:00
Mickael Remond
10219ec1e6
Refactor parsing / improve typing
2018-01-13 18:50:17 +01:00
Mickael Remond
710174b165
Moving XMPP library to Fluux project
2018-01-01 18:12:33 +01:00