lib/lucid/wire_support/wire_packet.rb in lucid-0.1.1 vs lib/lucid/wire_support/wire_packet.rb in lucid-0.2.0
- old
+ new
@@ -21,10 +21,10 @@
end
def to_json
packet = [@message]
packet << @params if @params
- packet.to_json
+ MultiJson.dump(packet)
end
def handle_with(handler)
handler.send("handle_#{@message}", @params)
end