开发者

Chat Invitation using XMPPHP

Is it possible to send chat invitations using XMPPHP?

I have successfu开发者_StackOverflowlly setup the messaging system from a CMS, but I am looking for a way to send chat request before the first message is sent.

Is it possible to do that in XMPPHP? I am asking this because I could not find any proper documentation for the class. Thank you for any input.


you can use below for send chat invitation.

$conn->subscribe('$jid');

by

$conn->unsubscribe('$jid');

you can remove jid from your contact list


Typically in XMPP, we don't send a request first, we just send the first message. If you MUST have this feature, you'll want the protocol from XEP-155 (Stanza Session Negotiation). You'll likely need to implement this protocol yourself, and also deal with the case where the client on the other side doesn't implement the protocol... mostly because NOBODY has implemented this. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜