If base-64 encoding was requested, send the ping frame as a 0-length text frame, rather than as a 0-length binary frame.