const form = new FormData();
const file = document.querySelector('#sendMessasgeFile').files[0];
form.append('upfile', file);
var data = {
userId: user_id,
media:form,
command:'private'
};
conn.send(JSON.stringify(data));