How to execute something on all client?

Author: Toon324
Message:

Is there a way to create world-wide ChatBubbles without creating a ChatMessage?

Author: KaKaRoTo
Message:

a module could send that over through socket to make it display programatically for everyone

Author: KaKaRoTo
Message:

on socket.onMessage("module.yourmodule", (msg) => {if (msg.action === "displayChatBubble") ui.chat.displayChatBubble(msg.content)}) (or whatever those APIs are)

Author: KaKaRoTo
Message:

see how LMRTFY uses sockets to broadcast messages

Author: KaKaRoTo
Message:

Note: when you emit, your own client doesn’t receive the message, so you need to call your handler at the same time.
Note 2: the socket message won’t work if you don’t have socket: true in your module.json