summaryrefslogtreecommitdiff
path: root/xmpp/session.go
AgeCommit message (Collapse)Author
2023-07-04Apply go fmtxengineering
2023-07-04Re-implement SASLxengineering
Was broken because of switch to new RX concept.
2023-07-04Introduce handle() as dummyxengineering
2023-07-04First working version of new RX conceptxengineering
This uses xml.Decoder.DecodeElement() which makes parsing way easier. This first step is just able to parse stream features partially.
2023-07-04Re-implement stream open and closexengineering
This is more suitable for the new RX concept.
2023-07-04Remove runStreamPair()xengineering
This will not be used in the new RX concept.
2023-07-03Remove encoderDecoder struct completelyxengineering
This was not really necessary because it was all related to the xmpp.session and should thus be implemented there. Using the context package further reduced the complexity for cancelation.
2023-07-03Move xml.Encoder to session structxengineering
The encoderDecoder sub-struct of the session struct should be removed in little steps. This is the first one.
2023-06-30Send initial presence after resource resultxengineering
This completes the connection process.
2023-06-30Rework and apply stream nesting on SASL successxengineering
If SASL authentication is successful a new stream has to be opened by the client. This is implemented with this commit.
2023-06-28xmpp: Move Stream logic to stream_pair.goxengineering
The new source file should contain the complete stream logic.
2023-06-28Temporarily drop SASL authxengineering
This prepares the switch to stream pairs.
2023-06-27xmpp: Re-introduce SASL authenticationxengineering
2023-06-27xmpp: StartSession(): Switch to directed chanxengineering
This reduces the risk of using those channels wrong.
2023-06-27xmpp: Add name to return value of StartSessionxengineering
This explains implicitly why the value is returned.
2023-06-27Apply go fmtxengineering
2023-06-27xmpp: Remove unused codexengineering
This is part of the refactoring. Details of the old implementation should be looked up by older commits.
2023-06-16Add chan xml.Token xmpp.session.rxxengineering
This allows the goroutine which fetches all tokens from the server to forward them to the main goroutine of the session.
2023-06-05Re-implement XML decodingxengineering
2023-06-05Re-implement initial stream start/endxengineering
2023-06-05Re-implement XML encodingxengineering
2023-06-04Implement dummy XML encoder and decoderxengineering
2023-06-03Re-implement transport setup in sessionxengineering
2023-06-03Introduce new communication patternxengineering
2023-06-03Implement dummy sessionxengineering
Minimal step towards session-based XMPP architecture.