Cleaned up webclient and fixed some bugs. There are still too much extra data being sent via msg(), these have to be handled server-side.

This commit is contained in:
Griatch 2016-02-12 14:09:18 +01:00
parent 5c7067ddce
commit cd8651c740
5 changed files with 81 additions and 86 deletions

View file

@ -353,4 +353,5 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
"""
Send other oob data
"""
print "telnet.send_default not implemented yet! ", args
if not cmdname == "options":
print "telnet.send_default not implemented yet! ", args

View file

@ -185,5 +185,6 @@ class WebSocketClient(Protocol, Session):
client instead.
"""
print "send_default", cmdname, args, kwargs
session.sendLine(json.dumps([cmdname, args, kwargs]))
if not cmdname == "options":
print "send_default", cmdname, args, kwargs
session.sendLine(json.dumps([cmdname, args, kwargs]))