Not logged in. · Lost password · Register
Forum: agsXMPP RSS
IProudNoob #1
Member since Jan 2020 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: How read messages from the conference?
Hello!
Perhaps the solution is very simple, but I did not find it.
Tell me how to read messages from the conference.
Where can I see an example for WindowsForm and Console?

Thanks in advance!
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There should be a GroupChat from in all our samples which shows you that,
IProudNoob #3
Member since Jan 2020 · 3 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
There should be a GroupChat from in all our samples which shows you that,

Thanks)
I thought I had a bug in the code.
I took your example as a basis.
But if you don’t write anything to the chat, then after 5-6 minutes the client disconnects. I decided that it was sufficient to create a separate thread in which an empty message would be sent every 3 minutes. This stream did not allow to read the data from the chat.

I do not know how to solve this problem in another way.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
make sure that Keep alives are enabled on your connection.
If this does not help then make sure you reply to XMPP pings when your server is sending them. You can also send pings from the client to the server to keep connection alive, but please don't send empty messages as a hack.
see also:
https://xmpp.org/extensions/xep-0199.html
IProudNoob #5
Member since Jan 2020 · 3 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
make sure that Keep alives are enabled on your connection.

But how to do it?
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
look for the KeepAlive property in the library.

You are also posting in the agsXMPP section here. If you are still using agsXMPP then you should update. This library is outdated since many years and not in development anymore.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS