-m fixed #183
This commit is contained in:
@@ -49,6 +49,8 @@ def parse_args():
|
|||||||
help="Set subprotocols")
|
help="Set subprotocols")
|
||||||
parser.add_argument("-o", "--origin",
|
parser.add_argument("-o", "--origin",
|
||||||
help="Set origin")
|
help="Set origin")
|
||||||
|
parser.add_argument("--eof-wait", default=0, type=int,
|
||||||
|
help="wait time(second) after 'EOF' recieved.")
|
||||||
parser.add_argument("-t", "--text",
|
parser.add_argument("-t", "--text",
|
||||||
help="Send initial text")
|
help="Send initial text")
|
||||||
|
|
||||||
@@ -138,10 +140,10 @@ def main():
|
|||||||
try:
|
try:
|
||||||
message = console.raw_input("> ")
|
message = console.raw_input("> ")
|
||||||
ws.send(message)
|
ws.send(message)
|
||||||
time.sleep(0.05)
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return
|
return
|
||||||
except EOFError:
|
except EOFError:
|
||||||
|
time.sleep(args.eof_wait)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user