lib/mkit/client/mkitd_client.rb in mkit-0.7.2 vs lib/mkit/client/mkitd_client.rb in mkit-0.8.0
- old
+ new
@@ -4,17 +4,19 @@
module MKIt
class MKItdClient
def initialize(request, server_url, my_id)
case request[:verb].to_sym
- when :ws
+ when :ws, :ws_console
@client = MKIt::WebSocketClient.new(server_url, my_id)
else
@client = MKIt::HttpClient.new(server_url, my_id)
end
end
def request(request, request_data)
+ # puts "Request: #{request}"
+ # puts "Request data: #{request_data}"
@client.request(request, request_data)
end
end
end