lib/jschat/client.rb in jschat-0.1.5 vs lib/jschat/client.rb in jschat-0.2.0
- old
+ new
@@ -128,10 +128,10 @@
def process_message(json)
command = get_command json
if command
- time = get_time json[json[command]]
+ time = get_time json
response = send(protocol_method_name(command, json[command]), json[json[command]])
case response
when Array
response
when String