modify send message to JSON
apply socket event