diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-10-11 00:08:48 -0500 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-10-18 07:13:54 -0500 |
commit | 0fe213fbbd1bc5275c08f81c383f2b9292dde60e (patch) | |
tree | 062ee108d530f4360c32851ece8b4b2810097709 /module | |
parent | 2c4d5175d6db96827a21b16ff218b97b3eb249e2 (diff) | |
download | phosphor-rest-server-0fe213fbbd1bc5275c08f81c383f2b9292dde60e.tar.gz phosphor-rest-server-0fe213fbbd1bc5275c08f81c383f2b9292dde60e.zip |
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 <dkodihal@in.ibm.com>
Diffstat (limited to 'module')
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |