Commit Graph

471 Commits (master)
 

Author SHA1 Message Date
Mickael Remond a16483397d
Update test platform to go1.13 5 years ago
Mickael Remond ef2c0b465e
Update examples 5 years ago
Wichert Akkerman 2f8ec7b36f Only try startTls if the connection is not secure 5 years ago
Wichert Akkerman 6da1962962 Correctly open new streams after StartTLS and auth 5 years ago
Wichert Akkerman 33446ad0ba Create a new stream after StartTLS 5 years ago
Wichert Akkerman 390f9b065e Replace readWriter and decoder after StartTLS 5 years ago
Wichert Akkerman 60e2cdd088 Close the transport if NewSession fails
The makes sure we always send the `</stream:stream>` or `<close/>` correctly.
5 years ago
Wichert Akkerman a6709a1f71 Do not try to create a stream logger before we have a net.Conn 5 years ago
Wichert Akkerman 38bdcaec36 Do not copy more bytes than were read 5 years ago
Wichert Akkerman ffadd331dd Add a go function to always read websockets
Websocket need to have a Reader running at all times in order to
allow Ping to work (because a Reader is the only thing that will
correctly handle control frames). To faciliate this a go function
is introduced that will always read from the websocket until it
is cancelled. Read data is passed to the transport via a channel.
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 25fd476328 Negotiate xmpp websocket subprotocol 5 years ago
Wichert Akkerman 36e153f981 Allow transports to define their own ping mechanism 5 years ago
Wichert Akkerman d0f2b492ac Fix XMPP TLS config 5 years ago
Wichert Akkerman 87ff01ac68 Fix websocket connect timeout 5 years ago
Wichert Akkerman 01d78a1e5c Fix error result from Transport.Connect errors 5 years ago
Wichert Akkerman 8fb3e33a1f Only do ensurePort for XMPP transport
If we always do this the address gets mangled, breaking the transport
selection.
5 years ago
Wichert Akkerman a189748b9c Fix test for ws connection 5 years ago
Wichert Akkerman 06a76160c8 Use transport factory function 5 years ago
Wichert Akkerman 8db608ccc1 Add IsSecure() to 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
Wichert Akkerman f8d0e99696 Move XMPP transport to separate file 5 years ago
Wichert Akkerman e97d290e2b Use Transport in Component 5 years ago
Wichert Akkerman 96fccbd399 Split out TransportConfiguration
This allows using the same transport configuration from both clients and components.
5 years ago
Wichert Akkerman 66e219844b Add a websocket transport 5 years ago
Wichert Akkerman a3c62e515e Introduce Transport interface 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 3b66e31888 We do not need the Content to be innerxml. cdata is enough.
Fixes #110
5 years ago
Mickael Remond 005c8823d9 Fixes issue with unescaped character %
Fixes #113
5 years ago
Mickael Remond 2cdda48467 Update xerrors dependency for go 1.13 5 years ago
Mickael Remond 8794ea6ed8
Check if we have a connection open before trying to close it
Fixes #22
5 years ago
Martin/Geno 7e596fc33c quick fix for component see #47 5 years ago
Martin/Geno 6f9808fe16 fix(doc): typos 5 years ago
Wichert Akkerman 7b1f83f6b7 Expose Route.AddMatcher
This fixes #102
5 years ago
Martin/Geno 6005a964ba fix stream management for component + add test 5 years ago
Mickael Remond d3b45b42a5
Fix typo 5 years ago
Martin/Geno 6e65ba2a0b fix naming from fluxxmpp to fluuxmpp 5 years ago
Martin/Geno 76f59be5ed merge commandline tools 5 years ago
Mickael Remond 80d2e0fa1e Remove debug print-out 5 years ago
Mickael Remond 2e864ff7f6 Clean-up: remove test/debug code 5 years ago
Mickael Remond 3de99e0e0e Add initial support for stream management
For now it support enabling SM, replying to ack requests from server,
and trying resuming the session with existing Stream Management state.
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 61adf7e414 Add builder & test on software version helpers 5 years ago
Mickael Remond 014957e029 Expand comments 5 years ago
Mickael Remond 69118a952a Add helpers for IQ DiscoItems 5 years ago