each XMPP user is represented by an object of class SOXMPP_LoggedInUser
each SOXMPP_LoggedInUser object has an SOChatFeed object
the SOChatFeed object polls the JSON feed, and when new messages arrive, sends them to the user
but I'm now thinking maybe the bridge itself should have a single SOChatFeed, which polls and sends all messages to everyone in all rooms, which was how I originally had it coded
I just need to figure out if, once I have authentication working, if there will be information in the JSON feed specific to each user... like, if somone @rchern s you, does your JSON feed show something that an unauthenticated user's JSON feed doesn't?
If so, your SOXMPP_LoggedInUser will continue to need its own feed
@rchern sending a message from XMPP to SO Chat? Or vise-versa?
maybe each room should have a feed, from which it extracts only messages, edits, joins/leaves, etc, and each user should have their own feed, from which is extracts only authentication events
Create a new account on the server. Login ID. Password. Encryption required (TLS/SSL): Yes. Ignore SSL certificate errors: Yes. Server: jabber.smart-safe-secure.com. Port 5222. Use old SSL: No.
I am trying to decode some HTML entities ('<' => '<').
I have found an old gem (http://github.com/tma/html_helpers/) but it seems to have been abandoned twice.
Any recommendations? (will need to use it in a model)
I am trying to decode some HTML entities ('<' => '<').
I have found an old gem (http://github.com/tma/html_helpers/) but it seems to have been abandoned twice.
Any recommendations? (will need to use it in a model)
hm, that doesn't look italic over XMPP either. But I'm not sending it HTMl encoded.. A new bug :-)
Actually this is still the same bug. I'll bet that the text I send to the xmpp4r library gets HTML encoded... so I need to find a way to send raw XML to the XMPP client, then I can remove the HTML entities decoder I just added.