websocket: show messages in the eventlog

This commit is contained in:
Thomas Kriechbaumer 2016-11-21 23:04:47 +01:00
parent 3353aa3cfd
commit ea97f62975

View File

@ -76,6 +76,7 @@ class WebSocketLayer(base.Layer):
websocket_message = t(self.flow, not is_server, payload) websocket_message = t(self.flow, not is_server, payload)
self.flow.messages.append(websocket_message) self.flow.messages.append(websocket_message)
self.log("WebSocket message: {}".format(websocket_message.info), "info")
self.channel.ask("websocket_message", self.flow) self.channel.ask("websocket_message", self.flow)
# chunk payload into multiple 10kB frames, and send them # chunk payload into multiple 10kB frames, and send them