Subject: DiscoManager.DiscoverItems silently dies
Hey guys,
I am trying to get a List of public chatrooms. My server runs locally as Prosody. I can create users and rooms and login, but I can not get the list of rooms. Here is what I tried:
-- get it async via the domain: this just silently dies and I can not hit breakpoints afterwards oO
-- get it async via Host: same behaviour
-- get it via EventHandler callback
-- get via discoManager eventHandlers - none of the breakpoints inside the event handlers get ever hit
Also I tried all of the above with DiscoverItems("localhost", (full) user-Jid), DiscoverItems("conference.localhost", (full) user-Jid), and various combinations and jid variations. I am completely lost, why does it not give me anything but dies silently? All I get is "The thread 0x1218 has exited with code 0 (0x0).". Is there any documentation I am missing?
Thanks!
I am trying to get a List of public chatrooms. My server runs locally as Prosody. I can create users and rooms and login, but I can not get the list of rooms. Here is what I tried:
-- get it async via the domain: this just silently dies and I can not hit breakpoints afterwards oO
- var info = await discoManager.DiscoverItemsAsync(m_config.ChatDomain); // ChatDomain is here "localhost"
-- get it async via Host: same behaviour
- var info = await discoManager.DiscoverItemsAsync(m_config.ChatConfHost); // ChatConfHost is here "conference.localhost"
-- get it via EventHandler callback
- private void DiscoItemsResult(object sender, IqEventArgs e)
- {
- // we will never get here
- var foo = "asdfsadf";
- }
- [...]
-- get via discoManager eventHandlers - none of the breakpoints inside the event handlers get ever hit
- discoManager.OnDiscoItemsResult += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.OnDiscoItemsError += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.OnDiscoItemsRequest += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.OnDiscoInfoError += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.OnDiscoInfoRequest += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.OnDiscoInfoResult += (object sender, DiscoIqEventArgs eventArgs) =>
- {
- var foo = "bar";
- };
- discoManager.DiscoverItems(m_config.ChatDomain);
Also I tried all of the above with DiscoverItems("localhost", (full) user-Jid), DiscoverItems("conference.localhost", (full) user-Jid), and various combinations and jid variations. I am completely lost, why does it not give me anything but dies silently? All I get is "The thread 0x1218 has exited with code 0 (0x0).". Is there any documentation I am missing?
Thanks!
This post was edited on 2017-05-30, 18:34 by Alex.