I'm setting up a MediaWiki based website locally. It's running with Apache on localhost. I'd like to set up some scripts to consume my wiki's event stream.
MediaTech has docs that show examples like this:
import json
from sseclient import SSEClient as EventSource
url = 'https://stream.wikimedia.org/v2/stream/recentchange'
for event in EventSource(url):
if event.event == 'message':
try:
change = json.loads(event.data)
except ValueError:
pass
else:
print('{user} edited {title}'.format(**change))
But I can't find any information on where the default stream endpoint is for a new install. I haven't set up any subdomains or anything, and all the examples I find use WMF streams.
What endpoint do I need to connect to in order to consume my wiki's event stream?
Thanks!