Skip to main content
1 of 2
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?

Makyen
  • 1.7k
  • 1
  • 12
  • 20