Skip to main content
minor grammar
Source Link
Makyen
  • 1.7k
  • 1
  • 12
  • 20

I'm writing userscripts to interact with Stack Exchange chatChat. I'd like to be notified when things happen (e.g. messages added, removed, edited, users joining, etc.). I know that I could use a MutationObserver to watch for changes to the DOM, but is there any way to register a callback with the SE chatChat system to be notified upon these events happening?

I'm writing userscripts to interact with Stack Exchange chat. I'd like to be notified when things happen (e.g. messages added, removed, edited, users joining, etc.). I know that I could use a MutationObserver to watch for changes to the DOM, but is there any way to register a callback with the SE chat system to be notified upon these events happening?

I'm writing userscripts to interact with Stack Exchange Chat. I'd like to be notified when things happen (e.g. messages added, removed, edited, users joining, etc.). I know that I could use a MutationObserver to watch for changes to the DOM, but is there any way to register a callback with the SE Chat system to be notified upon these events happening?

Source Link
Makyen
  • 1.7k
  • 1
  • 12
  • 20

How do I get notified of events in SE chat?

I'm writing userscripts to interact with Stack Exchange chat. I'd like to be notified when things happen (e.g. messages added, removed, edited, users joining, etc.). I know that I could use a MutationObserver to watch for changes to the DOM, but is there any way to register a callback with the SE chat system to be notified upon these events happening?