code: def ping(self, payload=""):
          
          if isinstance(payload, six.text_type):
              payload = payload.encode("utf-8")
          self.send(payload, ABNF.OPCODE_PING)
docs: send ping data.
  
          payload: data payload to send server.