Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
edmyjose #1
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hi, hey how can i connect to windows live messenger, i have been reading that i have to connect by sasl, get an access token, an uri response, o got registered in https://manage.dev.live.com/ but its really confusing. i thought i can connect like facebook by username and password but every time i tried it cant connect.

thanks
This post was edited on 2012-08-28, 23:05 by edmyjose.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In the download of the full version there is a Windows Live Messenger example included. Please look at it.
Here in this blog post there is also many useful information:
http://www.ag-software.net/2011/12/15/microsoft-adds-xmpp-…

Alex
Avatar
edmyjose #3
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
Thanks, i just saw it, i found it in the search engine. im working on, im understanding the codes.

hey other question. im trying to make automatic the connection for example, when page load i want it connect itself without clicking in any button. but i cant find a way to do tha, always get me the same error

Error en tiempo de ejecución de Microsoft JScript: SignalR: Connection must be started before data can be sent. Call .start() before .send()

i have to click the button to connect. i look in google and in signalR site for answer but cant find it. sorry for this question, i know is other subject, but its driving me crazy.

thanks
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Sorry, no idea. But I am pretty sure that you get help from the SignalR guys in their chat or mailing lists.

Alex
Avatar
edmyjose #5
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
Yes, im posted in stackoverflow to see if anyone could help, i hope they could reply soon. thanks,
Avatar
edmyjose #6
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
Hey, after testing a lot way since yesterday, i didnt sleep, I DO IT, i have to delete the function and leave it without it just like this

<script type="text/javascript">
        // Proxy created on the fly 
        // Proxy created on the fly
        var chat = $.connection.chat;

        // Declare a function on the chat hub so the server can invoke it
        chat.addMessage = function (message) {
            $('#messages').append('<li>' + message + '</li>');
        };
        // Start the connection
        $.connection.hub.start().done(function () {
            //alert('Hello World');
                chat.send('Hello World');
        });
</script>
Avatar
edmyjose #7
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
Hi, again jejeje. well i have been trying to send messages, but its never send. im trying with this code to see if im going to right way.

in my onload page and click event i try this but is not working
xmppClient.Send(new Message {To = "i write the jid user", Type = MessageType.chat, Body = "Hello World"});};

i create an event in mi chat.vb hubs like this
Public Sub Send()
        ' Call the addMessage method on all clients
        'Clients.addMessage(message)
        Dim _xmppClient = New XmppClient()

        Dim msg = New Matrix.Xmpp.Client.Message()
        msg.Type = MessageType.chat
        msg.[To] = "i write the jid user"
        msg.Body = "Hola Mundo"

        _xmppClient.Send(msg)
    End Sub

and call it from jquery
$("#loginButton").click(function () {
                chat.send();

and i put this on the rosteritemEnd
Dim _xmppClient = New XmppClient()

        Dim msg = New Matrix.Xmpp.Client.Message()
        msg.Type = MessageType.chat
        msg.[To] = "i write the jid user"
        msg.Body = "Hola Mundo"

        _xmppClient.Send(msg)

they dont want to send the message, i have been all day trying to do it but doesnt send it.
FIX IT I have to declare this to worl properly
          Dim xmppClientFace As XmppClient = XmppClientsFace(Context.ConnectionId)
This post was edited on 2012-09-01, 23:57 by edmyjose.
Avatar
edmyjose #8
Member since Aug 2012 · 13 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
I been able to connect  to wlm but it has a rare behaviour, when i get connected fires for 1 time the onpresence, and then is not fired again, when someone sent me a message i check it with the interruption point i get the message and do all the process to added to my message container but never show, but if i connect to facebook its appears normally.

other issue is when i get connected it gets fired the rosteritem and onpresence, when finish onpresence i check it to get all the online contacts but its doesnt appears in my contact list. but if i get connected to facebook with user and pass i get everything normally,
This post was edited 3 times, last on 2012-09-02, 03:46 by edmyjose.
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