Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
mwaqas #1
Member since Mar 2012 · 10 posts · Location: Finland
Group memberships: Members
Show profile · Link to this post
Subject: Using xmppclient from background threads
Hello,

Are the calls to xmppclient thread safe e.g. can we send messages from background threads? while xmppclient itself was created on UI thread. What about using await in your new API? certainly using await is not good idea on UI thread.

Thanks in advance for your response,

-Waqas
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
XmppClient is thread safe. We are working on new async/task/await extensions and have published them already for the full .NET version.
We try to port them to the Windows Phone version as well when possible.

See also:
http://www.ag-software.net/2013/08/27/await-matrix/
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: