12345678910111213141516171819202122232425 |
- const log$q = new Logger("xverse-broadcast")
- class Broadcast{
- constructor(e, t) {
- this.room = e,
- Ee.handlers.push(t)
- }
- async handleBroadcast(e) {
- let t = null;
- try {
- t = JSON.parse(e.broadcastAction.data)
- } catch (r) {
- log$q.error(r);
- return
- }
- }
- broadcast(e) {
- const {data: t, msgType: r=MessageHandleType.MHT_FollowListMulticast, targetUserIds: n} = e;
- return this.room.actionsHandler.broadcast({
- data: t,
- msgType: r,
- targetUserIds: n
- })
- }
- }
- ;
|