public void send(JSONObject msg) throws IOException { msg.put("$dst", peerId); msg.put("$src", id); socket.sendMessage(msg.toJSONString()); }