Clarify that the incoming data is JSON

上级 b7ce9b65
......@@ -64,9 +64,9 @@ def process
end
end
def receive_data(data)
def receive_data(data_in_json)
if websocket_alive?
data = ActiveSupport::JSON.decode data
data = ActiveSupport::JSON.decode data_in_json
case data['command']
when 'subscribe'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册