Artea / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Space required in room nickname for HipChat XMPP #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I can authenticate on a HipChat server/instance via XMPPHP and send one-to-one 
messages, but I'm unable to send a message to a HipChat room, presumably 
because HipChat's room nickname requires a space. I'm using the following:

    $conn->connect();
    $conn->processUntil('session_start');
    // Enter the chatroom
    $conn->presence(NULL, "available", "<room number>@conf.hipchat.com/Bot Name");
    // Send message to chatroom - "groupchat" is required!
    $conn->message("<room name>@conf.hipchat.com", "Test!", "groupchat");
    // Leave the chatroom
    $conn->presence(NULL, "unavailable", "<room name>@conf.hipchat.com/Bot Name");
    $conn->disconnect();

I've tried Bot_Name, Bot\40Name, Bot\040Name, all to no avail. Any workarounds 
recommended when a space is required in the room nickname?

Original issue reported on code.google.com by jim.goli...@gmail.com on 6 Sep 2013 at 8:29