Commit graph

442 commits

Author SHA1 Message Date
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 70ef1d575f Reset Tests
Will come with MaM (XEP-313) implementation
2020-01-31 12:06:53 +01: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
remicorniere 84665d8c13
Merge pull request #146 from remicorniere/PubSub_Example
Pub sub example update
2020-01-14 22:53:11 +00:00
CORNIERE Rémi e9bda893d6 Added tests for new Owner namespace function 2020-01-14 23:47:18 +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
remicorniere 9b557a68b3
Merge pull request #145 from remicorniere/PubSub_Example
Added README.md to PubSub client example
2020-01-14 18:23:49 +00:00
CORNIERE Rémi 9ca9f48c89 Added README.md 2020-01-14 19:21:29 +01:00
remicorniere 6b0a036d07
Merge pull request #144 from remicorniere/PubSub_Example
PubSub example
2020-01-14 18:16:27 +00:00
CORNIERE Rémi f3218c4afa PubSub example 2020-01-14 19:12:54 +01:00
remicorniere 75531f457a Change log pub sub (#143)
* 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

* Changelog v0.4.0
2020-01-09 15:33:38 +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 6e2ba9ca57 Remove context leak warnings 2019-12-26 15:51:19 +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 e62b7fa0c7
Update client.go 2019-12-24 10:47:25 +00:00
remicorniere daf37cf5a8
Update Disconnect method on client
Remove wrong stanza sends
2019-12-24 10:44:01 +00: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
remicorniere 26114d40eb
Merge pull request #140 from remicorniere/Roster_Chat_Example
Added roster update to chat client example
2019-12-23 09:07:56 +00:00
CORNIERE Rémi f3252346c4 Added roster update to chat client example 2019-12-23 10:05:27 +01:00
remicorniere 3037bf6db8
Merge pull request #139 from remicorniere/IQ_Roster
Added Roster IQs
Added an overly primitive "disconnect" for the client to use in the chat client example
2019-12-23 08:12:26 +00: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
remicorniere 38f53642ba
Merge pull request #138 from remicorniere/Basic_Terminal_Client
Basic terminal client
2019-12-18 07:07:14 +00: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
remicorniere 27130d7292
Merge pull request #135 from remicorniere/Error_Handling
Added callback to process errors after connection.
2019-12-12 14:51:00 +00: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
rcorniere 1f5591f33a Merge branch 'Error_Handling' of github.com:remicorniere/go-xmpp into Error_Handling
# Conflicts:
#	client.go
#	client_test.go
#	tcp_server_mock.go
2019-12-10 12:45:58 +01:00
CORNIERE Rémi 6d8e9d325a Try removing decoder from IQ tests and changing writing method 2019-12-09 16:32:33 +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
remicorniere b74c0f0374
Merge pull request #136 from Crypho/eventmanager-status
Fix updating of EventManager.CurrentState
2019-12-09 15:30:53 +00:00
remicorniere 4f4e9f454f
Merge pull request #134 from Crypho/configurable-keepalive
Make keepalive interval configurable
2019-12-09 14:12:16 +00:00
Wichert Akkerman f41177775a Make keepalive interval configurable
This fixes #133
2019-12-09 14:06:31 +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
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
rcorniere 6a3833b27d Removed last bits of codecov 2019-12-02 10:19:39 +01:00
remicorniere 51db430cff
Merge pull request #130 from remicorniere/master
Removed codeship and codecov. We now use github actions and coveralls.
2019-11-29 16:15:08 +00:00
rcorniere bfe2b7a30f Removed codeship and codecov. We now use github actions and coveralls. 2019-11-29 17:13:18 +01:00
remicorniere a95b53d9ad
Update with coveralls badge. Removed codecov badge 2019-11-29 16:37:23 +01:00
remicorniere 10078e2a1b
Merge pull request #124 from Crypho/github-ci
Setup GitHub actions to run tests
2019-11-29 15:18:01 +00:00
remicorniere 80ba790555
Added coverage
Should detect race conditions, use the same covermove as the current mode in test.sh, and update code coverage on the repo. 
See : https://github.com/marketplace/actions/coveralls-github-action
2019-11-29 15:56:27 +01:00
remicorniere c60edf4771
Added "-race" flag to tests run command
Kind of testing edits on someone else's PR too
2019-11-28 17:40:19 +01:00
Jerome Sautret 3b84cb796e Add 0.3.0 changelog 2019-11-28 17:39:10 +01:00