Commit Graph

67 Commits (master)

Author SHA1 Message Date
rcorniere e59a86c380 Refactor tests 4 years ago
rcorniere 2083cbf29c Various fixes 4 years ago
remicorniere 928c1595ef
Merge pull request #148 from remicorniere/ResultSetsRework
- Changed IQ stanzas to pointer semantics
- Fixed commands from v 0.4.0 and tests
- Added primitive Result Sets support (XEP-0059)
- Tests for Result sets are not implemented yet. Result sets seem to be fairly unused across servers and is a little weird to test without a specific implementing XEP like XEP-0313; because the implementations are different across XEPs. Therefore, as 313 is coming, I'll update the tests for XEP-0059 with it.
4 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)
4 years ago
remicorniere 3a3a15507e
Update README.md 4 years ago
CORNIERE Rémi 1d1adb0c48 Example pubsub code cleanup 4 years ago
CORNIERE Rémi 20e02cc9ad Added node config 4 years ago
CORNIERE Rémi 9ca9f48c89 Added README.md 4 years ago
CORNIERE Rémi f3218c4afa PubSub example 4 years ago
remicorniere 947fcf0432 PubSub protocol support (#142)
* PubSub protocol support
Added support for :
- XEP-0050   (Command))
- XEP-0060   (PubSub)
- XEP-0004   (Forms)

Fixed the NewClient function by adding parsing of the domain from the JID if no domain is provided in transport config.
Updated xmpp_jukebox example

* Delete useless pubsub errors

* README.md update
Fixed import in echo example

* Typo

* Fixed raw send on client example

* Fixed jukebox example and added a README.md
4 years ago
Jerome Sautret 600f7d5246 Merge branch 'master' of github.com:FluuxIO/go-xmpp 4 years ago
Jerome Sautret ab80709aeb Added xmpp_component2 example. 4 years ago
remicorniere 94aceac802 Changed "Disconnect" to wait for the closing stream tag. (#141)
Updated example with a README.md and fixed some logs.
4 years ago
remicorniere ccc573c3b2
Update xmpp_chat_client.go
Quickfix : go back to menu when contacts are updated from server.
4 years ago
CORNIERE Rémi f3252346c4 Added roster update to chat client example 4 years ago
remicorniere f8f820170e
Merge branch 'master' into IQ_Roster 4 years ago
CORNIERE Rémi 390336b894 Added Roster IQs
Added an overly primitive "disconnect" for the client to use in the chat client example
4 years ago
CORNIERE Rémi c006990c20 Logging.
Added menus.
Can now send raw stanzas.
4 years ago
CORNIERE Rémi f0179ad90e Logging.
Added menus.
Can now send raw stanzas.
4 years ago
CORNIERE Rémi 1ba2add651 Example client with TUI 4 years ago
CORNIERE Rémi 5eff2d7623 Added callback to process errors after connection.
Added tests and refactored a bit.
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
Mickael Remond 08878ed4a2
Update go.sum file 5 years ago
Mickael Remond ebb6e845bf
Update requirements to go1.13 as required by new websockets dependencies 5 years ago
Mickael Remond ef2c0b465e
Update examples 5 years ago
Wichert Akkerman 92329b48e6 Transports need to handle open/close stanzas
XMPP and WebSocket transports require different open and close stanzas. To
handle this the responsibility handling those and creating the XML decoder is
moved to the Transport.
5 years ago
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()
5 years ago
Mickael Remond 2781563ea7 Update go.sum file 5 years ago
Mickael Remond 4f68c5eee2 Add X-OAUTH2 authentication and example 5 years ago
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.
5 years ago
Mickael Remond 2cdda48467 Update xerrors dependency for go 1.13 5 years ago
Mickael Remond e531370dc9
An invalid certificate is a permanent error if we do not skip cert check 5 years ago
Mickael Remond 4e185f4bb6
Use intermediate version (before 0.2.0) to fix stanza package usage 5 years ago
Mickael Remond 4f1e0ded97 Simplify disco with builder helpers 5 years ago
Mickael Remond 176dcdce33 Simplify disco and software version
Make use of helpers.
5 years ago
Mickael Remond 1c74d102c7
Fix reference to missing tag 5 years ago
Mickael Remond 6ff7812ac4
go mod tidy 5 years ago
Mickael Remond 6a5f2750f1
Clean-up 5 years ago
Mickael Remond 9f095cb90f
Update dependencies 5 years ago
Mickael Remond 9577036327 Add support for self-signed certificates 5 years ago
Mickael Remond 5992cc2231 Fix XMPP logger consistency
- Rename socketProxy to StreamLogger
- Ensure client send traffic through the logger
5 years ago
Mickael Remond e3c0747cbb
Improves documentation: Explain how to create a custom stanza extension 5 years ago
Mickael Remond 5db9a80605
Move example to new data structure 5 years ago
Mickael Remond 20a66dc47d
Use an approach to build stanza that do not require a "builder" abstraction 5 years ago
Mickael Remond 428787d7ab
Refactor and move parsing and stanza to a separate package 5 years ago
Mickael Remond 7a386ec8d0 Examples should use local repository version 5 years ago
Mickael Remond 555cbe12b4
Update example dependency to latest code version 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
genofire 923fd61587 compress iq checking in component 5 years ago