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:
parent
5c7067ddce
commit
cd8651c740
5 changed files with 81 additions and 86 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue