Questions tagged [sleekxmpp]
14 questions
3
votes
1 answer
XMPP threaded receiver in Python 3
What I want to do is set up an XMPP receiver using the Slixmpp library which listens for messages throughout the script execution. I think the threading library might provide a solution so tried that.
This script is for an online PvP game and I need…

Samarth Singla
- 31
- 3
3
votes
1 answer
SleekXMPP: "Certificate has expired."
I'm currently trying to use the sleekxmpp module in Python3.5 to connect to jabber.at, an XMPP service. Jabber.at's SSL certificates are issued by Let's Encrypt.
The problem I'm having is, when I try to log in to my jabber.at account using…

ubergeek77
- 101
- 7
2
votes
1 answer
XMPP - Roster Subscription Explaination
Consider I've 2 users Alice and Bob on my Jabber Server. To add into the rosters with subscription as both, I need to do the following steps:
Alice sends a subscription request to Bob.
When Bob receives the request, he approves it.
Bob may also be…

Praful Bagai
- 16,684
- 50
- 136
- 267
2
votes
1 answer
Ejabberd - Send & Receive messages via Bot
I've written a bot B which receives messages from client C1 and forwards it to client C2, ie 2 people can connect via the gateway Bot.
I'm using Sleekxmpp, a python client XMPP library for the above purpose.
import logging
from sleekxmpp import…

Praful Bagai
- 16,684
- 50
- 136
- 267
1
vote
0 answers
Nginx server with uwsgi,flask and sleekxmpp
I'm trying to handling some messages by using nginx server with uwsgi, flask and sleekxmpp.
Here is the code.
import ssl, json, logging, threading, time
from flask import Flask
from sleekxmpp import ClientXMPP
from sleekxmpp.exceptions import…

Junho Kim
- 29
- 1
1
vote
1 answer
Send XMPP message with custom element in message stanza using SleekXMPP
I'm developing a XMPP bot that will send/reply a message to the sender with a addition element as following
foo
bar
…

lxnx
- 194
- 2
- 17
1
vote
0 answers
SleekXMPP and Flask Socketio Hanging Threads
I'm trying to create and XMPP client that I can control from my browser. I'm using SleekXMPP for the XMPP client and flask-socketio for the website so I can relay information from the XMPP server to my XMPP client to my website frontend. If I used…

natsuki_2002
- 24,239
- 21
- 46
- 50
1
vote
1 answer
SleekXMPP-How to check whether the user is authenticated or not?
As the question says, how can I do it? following is the code-
import logging
from sleekxmpp import ClientXMPP
logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')
def on_session(event):
xmpp.get_roster()
xmpp =…

Praful Bagai
- 16,684
- 50
- 136
- 267
0
votes
1 answer
Sending Messages with sleekxmpp hangs in process()
So I've got this little Python script that get's triggerd from an insert into a PostgreSQL table and deliveres XMPP Messages. Worked like a charm. Now with an upgrade to Python 3.8 (from 3.5) and sleekxmpp 1.3.3. (previous 1.3.1) I have an issue: it…

sers
- 3,139
- 3
- 20
- 28
0
votes
2 answers
SleekXMPP (Slixmpp) Server Component not receiving all MUC messages from ejabberd
we want to build a simple server component for ejabberd which receives all messages sent to MUC rooms (we have many rooms and new ones are being created all the time) and, after processing some of these messages, performs some operations.
We don't…

pAkY88
- 6,262
- 11
- 46
- 58
0
votes
2 answers
Python issue with time.sleep in sleekxmpp
I am using sleekxmpp as the xmpp client for python. The requests are coming which I am further forwarding to other users/agents.
Now the use case is, if a user is not available we need to check the availability every 10 seconds and transfer to him…

sid8491
- 6,622
- 6
- 38
- 64
0
votes
0 answers
socket try connection exception
I am using sleekxmpp to send python responses to an instant messenger. I have an active and a backup server.
Currently I am connection to the active server like described in the docs.
if xmpp.connect(('myserver', myport)):
…

adama
- 537
- 2
- 10
- 29
0
votes
1 answer
Subscribing new recipient: update_roster() seems to hang
I've got a small python script to send xmpp-messages to a given recipient. This works well, if there's an existing subscription for the recipient - otherwiese the message won't be delivered.
As there are new users to the system regularly, I had the…

sers
- 3,139
- 3
- 20
- 28
-1
votes
1 answer
passing from sleekxmpp to slixmpp AttributeError: '_asyncio.Future' object has no attribute 'find_all'
I'm using slixmpp i had these already done in sleekxmpp and trying to pass to slixmpp
for i in results.find_all('.//{jabber:x:data}value'):
AttributeError: '_asyncio.Future' object has no attribute 'find_all'
#Create iq Stanza
resp =…

Dina
- 9
- 4