Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
billyman #1
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: Nimbuzz Room
Hi,
Today I started working with MatriX. I want to develop a chatroom bot.
I am using VB.NET 3.5.
I am have successfully logged In. But now I am unable to enter room.
What is room As Matrix.Jid?
I tried to assign roomname but I am getting runtime errors. How can I solve this problem.

And after overcoming this problem how will I be communicating in the room. I have OnReceiveXml event, so will I have to work on this event only or is there any other way too?

Is there a way to find out failed login or again I will have to read xml that I will receive in OnReceiveXml event?
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the Jid of a chatroom has the format room@conference.server.com.
Eg. the room Jid of our support room is dev@conference.ag-software.de. While the subdomain conference is not fixed and could be anything else.

Alex
Avatar
billyman #3
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,
   Thanks for the reply. Yesterday I spent all my day to figure out how can I join the room. I tried really hard to find the answer but every time I run my program I got error. So can you please show me a small example so that I can continue my work.
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MunManager.EnterRoom(jid) is all you need.
Avatar
billyman #5
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Dim myRoom As New MucManager
        myRoom.EnterRoom("zxzxzx@conference.nimbuzz.com", "billyman22")
        myRoom.ExitRoom("zxzxzx@conference.nimbuzz.com", "billyman22")

this is the code that I am using please tell me if there is anything wrong with my code.
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you have to pass your XmppClient instance to the MucManager in the constructorl.

Alex
Avatar
billyman #7
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
Thank you so much Alex.

How can I read and send messages to room? Will I have to work on xml that I will receive in OnReceiveXml? Or is there any other way to do so?
Avatar
Alex #8
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please study the MiniClient example which ships with MatriX. There is a GroupChat form which contains everything you need.
Avatar
billyman #9
Member since Sep 2012 · 9 posts
Group memberships: Members
Show profile · Link to this post
OK thanks. :)
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: MatriX RSS