sending messages via JSON frames