xaya/libxayagame

Implement XMPP-based broadcast for game channels

Closed this issue · 2 comments

We should implement a broadcast method for game channels that uses an XMPP server (potentially in combination with XID) to exchange off-chain messages. For this, we could use gloox as the client library.

The simplest approach would probably be to log into the XMPP server with a resource based on the channel ID (and probably also the game ID). Then simply process received messages from there. When sending messages, we would send them as individual messages to all channel participants with the correct resource as well.