From 0fe213fbbd1bc5275c08f81c383f2b9292dde60e Mon Sep 17 00:00:00 2001 From: Deepak Kodihalli Date: Wed, 11 Oct 2017 00:08:48 -0500 Subject: phosphor-gevent: enable websocket support Set 'WebSocketHandler' as the handler_class. Websockets are being supported to allow the REST server to be able to "push" events to clients. Change-Id: I4c5536ae9070635c00330bb59fc93d3b4382b461 Signed-off-by: Deepak Kodihalli --- module/obmc/wsgi/apps/rest_dbus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/obmc/wsgi/apps') diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index 4e5df53..c3c42ef 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -1045,7 +1045,7 @@ class ContentCheckerPlugin(object): class App(Bottle): - def __init__(self): + def __init__(self, **kw): super(App, self).__init__(autojson=False) self.bus = dbus.SystemBus() self.mapper = obmc.mapper.Mapper(self.bus) -- cgit v1.2.1