Comments (12)
Sounds nice - i really do not like this code: code snipped from thrempp
from go-xmpp.
Here is what the code looks like for Message extension: 4a4c485
I will now expand Presence to have []PresExtension and implement a similar Get method.
from go-xmpp.
Thanks for the pointer, I will have a look.
Let's try to make it possible for you to use the same underlying client for all your code base :)
from go-xmpp.
FYI there are:
- hook2xmpp based on mattn
- logmania - also really hacky based on yaja
- thrempp - based on this library ;)
from go-xmpp.
The main advantage of extensions is that they are extensible by the developer. You can use the lib and use your custom namespace extension.
We could have a getter for extensions, a bit similar to your nil test, that could look like (peudo-code):
var muc MUC
if ok := p.Get(&MUC); ok {
// Handle MUC
}
Anyway, I am still torn between simplicity of your approach and trying to build something that is a bit more complex but could handle more developers' needs ...
from go-xmpp.
Ok thanks for feedback, I will try to prepare something as discussed during the week-end :)
from go-xmpp.
I now think that oob and MUC presence extension should be ok for your needs.
I created #68 to track the development of XHTML extension support on messages.
from go-xmpp.
@genofire I have added basic HTML support (see #69). You should have everything to port your code hopefully.
Please, open new issue if you think we are still missing important features.
from go-xmpp.
#69 is for MUC not HTML
from go-xmpp.
Oups, sorry, it is #70
from go-xmpp.
Supi - now i need time to migrate by Programms ;)
Thank you for developing and maintaining xmpp library, it is really useful
from go-xmpp.
Thanks for your feedback and your help :)
And no rush / no pressure to upgrade your programs, I have plenty to do as well.
from go-xmpp.
Related Issues (20)
- SIGSEGV in xmpp_component example with Prosody HOT 1
- Implementation of stanza acknowledgement (XEP-0198) HOT 2
- PubSub stanza should be more generic HOT 1
- Improve error handling HOT 1
- Make keepalive configurable
- Add support for roster IQ stanzas HOT 4
- Support Message Archive Management (XEP-0313)
- Support XEP-0199: Reply to client or server initiated Ping
- Prosody & "echo" demo: not receiving any messages HOT 8
- XEP-0045: Cannot distinguish between empty subject and no subject HOT 1
- XEP-0045: Presences and messages arriving out of order; clients can interpret room join as complete before all `<presence/>`s landed
- stanza.Err makes 'code' non-optional
- Golang XML vulnerabilities HOT 3
- Cannot connect FluuxIO to MongooseIM
- "Echo" example from README should following RFC6121
- panic in session
- (stanza.IQ).MakeError: On including sender XML
- 【FEATURE】implementing ANONYMOUS auth mechanism ?
- InitialPresence should not be a constant
- GetDecoder() on an XMPP transport is called before Connect() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-xmpp.