Some cleanup of the OOB code.

This commit is contained in:
Griatch 2014-06-15 16:17:47 +02:00
parent cccb60dd6c
commit 2a6cfaca7d
3 changed files with 34 additions and 131 deletions

View file

@ -84,7 +84,7 @@ class WebSocketProtocol(Protocol, Session):
for (key, argstuple) in oobdata.items():
args = argstuple[0] if argstuple else []
kwargs = argstuple[1] if len(argstuple) > 1 else {}
self.data_in(oob=(key, args, kwargs))
self.data_in(text=None, oob=(key, args, kwargs))
except Exception:
log_trace("Websocket malformed OOB request: %s" % string)
else: