문제

Is it possible to send chat invitations using XMPPHP?

I have successfully 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.

도움이 되었습니까?

해결책

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. :)

다른 팁

you can use below for send chat invitation.

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

by

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

you can remove jid from your contact list

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top