xmpp

Simple continuously running XMPP client in python

本小妞迷上赌 提交于 2019-12-23 03:06:35
问题 I'm using python-xmpp to send jabber messages. Everything works fine except that every time I want to send messages (every 15 minutes) I need to reconnect to the jabber server, and in the meantime the sending client is offline and cannot receive messages. So I want to write a really simple, indefinitely running xmpp client, that is online the whole time and can send (and receive) messages when required. My trivial (non-working) approach: import time import xmpp class Jabber(object): def _

xmpp4r and Iq.new_register for in-band registration

人盡茶涼 提交于 2019-12-23 02:59:13
问题 I've been having trouble using xmpp4r to do in-band registration following the SO thread here: XMPP transport to another protocol The problem comes down to that I get a NoMethodError Exception error for new_register when I run the following code: require "xmpp4r" require "xmpp4r/client" require "xmpp4r/iq" def in_band_reg chat_name = 'testChatName' password = 'pword' reg = Jabber::Iq.new_register(chat_name, password) end NoMethodError Exception: undefined method `new_register' for Jabber::Iq

Deny messages from non-roster users in Openfire

前提是你 提交于 2019-12-23 02:40:47
问题 How do I only allow contacts who are on my roster list to send me messages? Is there any XEP responsible to do that? Or will I need to do this client-side? 回答1: Yes, OpenFire supports XEP-0016: Privacy Lists (see this question), which can be used to block stanzas according to various criteria. You can't explicitly block stanzas for contacts not in your roster, but you can block by subscription status none , which can more or less accomplish the same goal. You could send something like this:

GCM CCS Receive delivery receipt

狂风中的少年 提交于 2019-12-23 02:26:32
问题 I'm trying to write a 3rd party server .NET application for sending notifications to Android devices using GCM's CCS as outlined here. And I want to use Receive delivery receipts feature. I created a simple console app using agsXMPP library. My application sends message to GCM with the flag "delivery_receipt_requested": true and receives ACK message from the GCM server, and I see this message is delivered to the target device, but delivery receipt message doesn't come. Update: I can receive

Confused about Google GCM XMPP [closed]

风格不统一 提交于 2019-12-23 02:18:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm a little bit confused about how to implement XMPP communication to GCM. Should I implement a XMPP server or a XMPP client on my server? Thank you. 回答1: You should implement a XMPP client on your server, which will establish a connection to the GCM CCS server. As mentioned in a

Non GPL C/C++ XMPP client library for embedded Linux

风流意气都作罢 提交于 2019-12-23 02:01:49
问题 Does anyone know of a good non GPL C/C++ XMPP client library that works for embedded Linux in ARM machines? I've checked out txmpp but the last update seems to be 2 years ago. qxmpp seems to require Qt, which I'm not sure is supported in embedded Linux. Also, AFAIK Qt is for GUI, so I'm not sure why a library requires it. I also checked out gloox, but it's GPL and seems to be over a year old too. 回答1: Non GPL C/C++ XMPP client library for embedded Linux libstrophe - dual-licensed under Mit

XMPP Openfire Messages inserting late in database

▼魔方 西西 提交于 2019-12-23 01:52:37
问题 Goal:- Inserting messages in faster way to database. I have integrated xmpp openfire one-to-one chat over my website. I am using Monitoring Service plugin for storing messages into the database. What i am facing is when user send a message from one user to another user at that time messages are stored in the database. Now messages are stored, but i am facing issue of inserting messages late into the database. I am loading messages via ajax call when user clicks on another user message thread

how to handle Decline Action on XMPP Framework - Objective C

与世无争的帅哥 提交于 2019-12-23 01:52:34
问题 I have implemented group chat using XMPP Framwork . I am able to connect, send and receive messages between both parties. But their is an issue in getting the status when and Agent on other side Decline my request. None of delegate is calling when Agent Decline the request. Here is my code. - (void)setupStream { _xmppStream = [[XMPPStream alloc] init]; [_xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()]; [_xmppStream setHostName:kChatUrl]; [_xmppStream setHostPort:5222];

Asmack 18 connection : google.com:5222 Exception: Could not connect to talk.google.com remote-server-timeout

喜欢而已 提交于 2019-12-23 00:52:34
问题 I am trying to use asmack 18 to connect to gtlak server for XMPP connection. public static final String HOST = "talk.google.com"; public static final int PORT = 5222; public static final String SERVICE = "gmail.com"; ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, PORT, SERVICE); XMPPConnection connection = new XMPPConnection(connConfig); try { //Connect to the server connection.connect(); connection.login("xxxxxxxx@gmail.com", "password"); // Set the status to

file transfer in multi user chat to muliple users

妖精的绣舞 提交于 2019-12-22 19:13:09
问题 i want to send files to multiple users in a one chat room so that i will be broadcasted to everyone. so far i havent found anything or any help on internet which resolve this issue. currently what i tried is to send a single file to each users one by one but i think that is not an efficient way so if someone has another approach then please do let know. i have tried sending file using si-filetransfer and bystream also. socks5 bytestream is not possible in javascript i guess so i havent tried