louiz’
8b007c8bc8
Add text-private in the possible ad-hoc field types
2016-08-11 11:29:41 +02:00
louiz’
d4c5b8f4da
Rename the ad-hoc status “execute” into “executing”
...
From http://xmpp.org/extensions/xep-0050.html#desc-command only “executing”
is valid.
2016-08-11 11:28:46 +02:00
Chteufleur
30ec9e14fb
[fix] Add domain name in Stream to get TLS working
2016-07-23 11:59:21 +02:00
Chteufleur
d90f7642e3
Add not authorized error condition
2016-07-23 11:58:03 +02:00
Chteufleur
3f618b50f5
Add message type and error condition
2016-07-18 20:12:28 +02:00
Chteufleur
5b2aa0c077
Replace URL namespace in an ugly way to avoid unmarshal error
2016-07-18 18:18:18 +02:00
Chteufleur
934c81ee39
Add implementation of xep-0070
2016-06-20 21:28:11 +02:00
Chteufleur
da8d105154
Fix missing change in disco
2016-05-18 22:27:03 +02:00
Chteufleur
23e93d518b
Fix typo
2016-05-18 19:13:27 +02:00
Chteufleur
8f21af2b45
Add vcard support
2016-04-20 22:24:38 +02:00
Chteufleur
e0e253ce4b
Add Ad-Hoc command
2016-04-20 22:19:59 +02:00
Chteufleur
e82f10fe48
Add XEP-0092 (Software version)
2016-04-20 22:16:31 +02:00
Chteufleur
f7b1e7ecb2
Add params for presence and disco info
...
- Add Show, Status, Photo and Nick into presence stanza
- Add Node attribute into DiscoInfo payload
2016-04-20 22:10:37 +02:00
Matt Goodall
160d4cd390
Add license (MIT).
2016-04-16 23:32:10 +01:00
Matt Goodall
0daeeda190
Report and exit on unexpected error.
2013-04-23 09:16:08 +01:00
Matt Goodall
40fc5bc2ad
go fmt
2013-04-22 10:17:33 +01:00
Matt Goodall
001fb31173
Simple producer + user/component consumer throughput test.
2013-04-19 12:45:27 +01:00
Matt Goodall
35be3433e5
Relax error checking for home server lookup to handle localhost, etc.
2013-04-19 12:45:27 +01:00
Matt Goodall
1cd15d7297
Quick README.
2012-07-20 15:13:42 +01:00
Matt Goodall
541db6d37c
Unindent overview docs.
2012-07-20 15:05:04 +01:00
Matt Goodall
8bb5c81347
Implement XMPP closing.
2012-07-18 16:30:44 +01:00
Matt Goodall
703012bbb5
Initial Disco support.
...
Clients get the nice Disco type to use, components will probably just
use the other types to build <iq/> responses.
2012-07-18 12:14:20 +01:00
Matt Goodall
9ba9dcbe86
go fix. Clearly, I need to run this more often ;)
2012-07-18 11:40:36 +01:00
Matt Goodall
82015bcab4
Collect and consolidate namespaces.
2012-07-18 11:36:59 +01:00
Matt Goodall
f9302660b0
Convenient method for creating an Iq response.
2012-07-18 11:22:59 +01:00
Matt Goodall
438164a9d9
Better/correct Error type.
...
XMPP errors are a real pain - they have up to 3 elements. 2 are
XMPP-specific and have one of two namespaces, the other is application
specific. Go's xml package is good, but it's not that good!
So, I've had to handle the error data as a generic Payload string attr
and provide methods for retrieving the bits as conveniently as possible.
Note: there's no application-specific error data yet but it should slot
in ok now.
2012-07-18 11:22:59 +01:00
Matt Goodall
dde0afb688
Document more of the XMPP API.
2012-07-18 11:22:59 +01:00
Matt Goodall
c1da50ce26
Organise code into better logical groups.
2012-07-18 11:22:59 +01:00
Matt Goodall
cc012762e9
Replace Send/Recv funcs with In/Out channels.
...
Basically, make the channels public and just let the client handle a
stream/net error if it's interested.
This simplifies the API a little and also allows an application to
select {} from the XMPP channel and any other channels at the same time.
2012-07-18 11:22:59 +01:00
Matt Goodall
e22b95e43e
Add way to peek at Iq's payload element.
2012-07-16 16:06:13 +01:00
Matt Goodall
91b33a0f3d
Mention a couple of bugs to fix at some point.
2012-07-16 16:04:46 +01:00
Matt Goodall
b439198518
Convert FilterFn into the Matcher/MatcherFunc interface/adapter pair.
...
"Matcher" is a better name for how it's used. It also allows other types
to implement the interface.
2012-07-16 12:02:05 +01:00
Matt Goodall
17d143cb2c
Add client session establishment.
2012-07-13 11:23:49 +01:00
Matt Goodall
ba349b1058
Add Iq.Error and define xml tags for Error type.
2012-07-13 11:22:51 +01:00
Matt Goodall
466ab47e09
Add debug option to see XML stanzas.
2012-07-13 11:15:47 +01:00
Matt Goodall
1ab83b491b
Add component handshake stanza namespace.
2012-07-12 01:17:27 +01:00
Matt Goodall
7cc19606e1
Oops, fix tail.go for new Stream config.
2012-07-12 01:16:21 +01:00
Matt Goodall
e95528641b
Combine Stream's Decode and DecodeElement methods.
2012-07-12 00:56:35 +01:00
Matt Goodall
f97ed9ea37
Remove element name match test from Stream.Next().
...
Only one place still used it, so it might as well go.
2012-07-12 00:48:44 +01:00
Matt Goodall
6dfd9e096b
Documentation tweaks and additions.
2012-07-12 00:40:55 +01:00
Matt Goodall
20c380ebc6
Add UUID4 func and use it instead of hard-coded <iq/> ids.
2012-07-12 00:38:51 +01:00
Matt Goodall
909d0f5fac
Make example code easier to read with a bit of log-and-die trickery.
2012-07-12 00:38:51 +01:00
Matt Goodall
424c06855c
Make stanza logging in the Stream optional.
2012-07-12 00:38:51 +01:00
Matt Goodall
2c5fbc7122
Log incoming stanzas before they're unmarshaled.
...
A couple of bits in stream.go are commented out at the moment. They'll
be back in a moment, once the send/recv logging is optional.
2012-07-11 23:24:32 +01:00
Matt Goodall
318a97947b
Read incoming start element explicit part of sending outgoing start element.
2012-07-11 23:24:32 +01:00
Matt Goodall
30441cacf4
Fix typo.
2012-07-11 23:24:26 +01:00
Matt Goodall
de92cf1a55
Some JID and XML writer tests.
2012-07-11 15:57:06 +01:00
Matt Goodall
9013ad6a6a
Remove extra "has" from func comment.
2012-07-11 15:55:37 +01:00
Matt Goodall
85472a72b4
Ensure all methods that decode a stanza go via the same route.
2012-07-11 15:50:27 +01:00
Matt Goodall
2a11a800da
Extract writeXMLStartElement func.
2012-07-11 15:35:52 +01:00