Added frame_data(), receive_message(), and fixed heartbeat() and ping()