diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-15 15:39:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 15:39:05 +0100 |
commit | 75299af4fcaecfacb7449ebe0982d2ed0bd6edbd (patch) | |
tree | 65f878a58ae489aa0708f5ba66882f5c85f73003 /synapse/server.py | |
parent | Merge pull request #1007 from sargon/develop (diff) | |
parent | Doc get_next() context manager usage (diff) | |
download | synapse-75299af4fcaecfacb7449ebe0982d2ed0bd6edbd.tar.xz |
Merge pull request #1009 from matrix-org/erikj/event_split
Split out /events to synchrotron
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 6bb4988309..af3246504b 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -41,6 +41,7 @@ from synapse.handlers.presence import PresenceHandler from synapse.handlers.room import RoomListHandler from synapse.handlers.sync import SyncHandler from synapse.handlers.typing import TypingHandler +from synapse.handlers.events import EventHandler, EventStreamHandler from synapse.http.client import SimpleHttpClient, InsecureInterceptableContextFactory from synapse.http.matrixfederationclient import MatrixFederationHttpClient from synapse.notifier import Notifier @@ -94,6 +95,8 @@ class HomeServer(object): 'auth_handler', 'device_handler', 'e2e_keys_handler', + 'event_handler', + 'event_stream_handler', 'application_service_api', 'application_service_scheduler', 'application_service_handler', @@ -214,6 +217,12 @@ class HomeServer(object): def build_application_service_handler(self): return ApplicationServicesHandler(self) + def build_event_handler(self): + return EventHandler(self) + + def build_event_stream_handler(self): + return EventStreamHandler(self) + def build_event_sources(self): return EventSources(self) |