summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-12 15:31:44 +0100
committerErik Johnston <erik@matrix.org>2016-08-12 15:31:44 +0100
commit4e1cebd56f9688d49a51929264c095356005f9a3 (patch)
tree4e4ba72e94950ce1e0329c333e2b1739b7fdd0b4 /synapse/server.py
parentDont invoke get_handlers fromClientV1RestServlet (diff)
downloadsynapse-4e1cebd56f9688d49a51929264c095356005f9a3.tar.xz
Make synchrotron accept /events
Diffstat (limited to '')
-rw-r--r--synapse/server.py9
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)