docs: def sendMessage(self, data):
        """
            Send websocket data frame to the client.
  
            If data is a unicode object then the frame is sent as Text.
            If the data is a bytearray object then the frame is sent as Binary.
        """
        opcode = BINARY
        if isinstance(data, unicode):
           opcode = TEXT
        self._sendMessage(False, opcode, data)