Mastodon-Stream -> [Broadcast] -> Server1
+--> Server2
+--> Server3
Mastodon auth config
$ cat config.sh
SERVER=mstdn.jp
USERTOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1 line = 1 url (API endpoint)
$ cat dest.list
http://localhost:8080/
http://localhost:8081/
http://localhost:8082/api/mastodon/stream
Mastodon raw stream is like this
:thump
event: update
{"type": ....}
:thump
event: notification
{"type": ....}
:thump
:thump
mcast
converts this and send data for each data
{"event_type": "thump"}
{"event_type": "update", "data": {"type": ...}}
{"event_type": "thump"}
{"event_type": "notification", "data": {"type": ...}}
{"event_type": "thump"}
{"event_type": "thump"}
bash ./mcast