rcorniere
0459144512
First commit with dirty tests
2020-03-06 16:44:01 +01:00
rcorniere
2083cbf29c
Various fixes
2020-01-31 15:17:59 +01:00
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.
2020-01-31 11:18:36 +00:00
rcorniere
8798ff6fc1
- Changed IQ stanzas to pointer semantics
...
- Fixed commands from v 0.4.0 and tests
- Added primitive Result Sets support (XEP-0059)
2020-01-31 11:48:03 +01:00
remicorniere
3a3a15507e
Update README.md
2020-01-20 12:24:01 +01:00
CORNIERE Rémi
1d1adb0c48
Example pubsub code cleanup
2020-01-14 23:13:13 +01:00
CORNIERE Rémi
20e02cc9ad
Added node config
2020-01-14 22:47:49 +01:00
CORNIERE Rémi
9ca9f48c89
Added README.md
2020-01-14 19:21:29 +01:00
CORNIERE Rémi
f3218c4afa
PubSub example
2020-01-14 19:12:54 +01:00
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
2020-01-09 15:33:11 +01:00
Jerome Sautret
600f7d5246
Merge branch 'master' of github.com:FluuxIO/go-xmpp
2019-12-26 15:06:14 +01:00
Jerome Sautret
ab80709aeb
Added xmpp_component2 example.
2019-12-26 15:05:34 +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
remicorniere
ccc573c3b2
Update xmpp_chat_client.go
...
Quickfix : go back to menu when contacts are updated from server.
2019-12-23 09:25:39 +00:00
CORNIERE Rémi
f3252346c4
Added roster update to chat client example
2019-12-23 10:05:27 +01:00
remicorniere
f8f820170e
Merge branch 'master' into IQ_Roster
2019-12-23 08:09:39 +00:00
CORNIERE Rémi
390336b894
Added Roster IQs
...
Added an overly primitive "disconnect" for the client to use in the chat client example
2019-12-23 09:04:18 +01:00
CORNIERE Rémi
c006990c20
Logging.
...
Added menus.
Can now send raw stanzas.
2019-12-18 07:59:23 +01:00
CORNIERE Rémi
f0179ad90e
Logging.
...
Added menus.
Can now send raw stanzas.
2019-12-18 02:16:46 +01:00
CORNIERE Rémi
1ba2add651
Example client with TUI
2019-12-16 01:42:27 +01:00
CORNIERE Rémi
5eff2d7623
Added callback to process errors after connection.
...
Added tests and refactored a bit.
2019-12-06 15:42:01 +01:00
remicorniere
1822089db6
Tests for Component and code style fixes ( #129 )
...
* Tests for Component and code style fixes
2019-11-28 17:15:15 +01:00
Mickael Remond
6aa1e668ee
Fix issues after refactor
...
Relates to #126
2019-11-08 12:07:55 +01:00
Mickael Remond
08878ed4a2
Update go.sum file
2019-11-04 16:32:59 +01:00
Mickael Remond
ebb6e845bf
Update requirements to go1.13 as required by new websockets dependencies
2019-10-29 14:52:31 +01:00
Mickael Remond
ef2c0b465e
Update examples
2019-10-29 14:39:58 +01:00
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.
2019-10-28 16:38:10 +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
2781563ea7
Update go.sum file
2019-10-01 11:40:31 +02:00
Mickael Remond
4f68c5eee2
Add X-OAUTH2 authentication and example
2019-10-01 11:40:31 +02: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
2cdda48467
Update xerrors dependency for go 1.13
2019-09-27 16:32:53 +02:00
Mickael Remond
e531370dc9
An invalid certificate is a permanent error if we do not skip cert check
2019-07-31 11:43:54 +02:00
Mickael Remond
4e185f4bb6
Use intermediate version (before 0.2.0) to fix stanza package usage
2019-07-30 10:55:49 +02:00
Mickael Remond
4f1e0ded97
Simplify disco with builder helpers
2019-07-30 10:45:20 +02:00
Mickael Remond
176dcdce33
Simplify disco and software version
...
Make use of helpers.
2019-07-30 10:45:20 +02:00
Mickael Remond
1c74d102c7
Fix reference to missing tag
2019-07-30 10:39:19 +02:00
Mickael Remond
6ff7812ac4
go mod tidy
2019-07-27 17:34:10 -07:00
Mickael Remond
6a5f2750f1
Clean-up
2019-07-27 16:50:10 -07:00
Mickael Remond
9f095cb90f
Update dependencies
2019-07-27 09:22:44 -07:00
Mickael Remond
9577036327
Add support for self-signed certificates
2019-07-15 12:22:21 +02:00
Mickael Remond
5992cc2231
Fix XMPP logger consistency
...
- Rename socketProxy to StreamLogger
- Ensure client send traffic through the logger
2019-06-29 10:47:07 +02:00
Mickael Remond
e3c0747cbb
Improves documentation: Explain how to create a custom stanza extension
2019-06-28 16:19:09 +02:00
Mickael Remond
5db9a80605
Move example to new data structure
2019-06-27 14:35:03 +02:00
Mickael Remond
20a66dc47d
Use an approach to build stanza that do not require a "builder" abstraction
2019-06-27 14:30:23 +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
7a386ec8d0
Examples should use local repository version
2019-06-24 12:24:45 +02:00
Mickael Remond
555cbe12b4
Update example dependency to latest code version
2019-06-22 11:28:01 +02:00
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
2019-06-22 11:13:33 +02:00
genofire
923fd61587
compress iq checking in component
2019-06-20 15:10:41 +02:00