code: def send(self, message, binary=False):
          
          if binary is None:
              binary = not isinstance(message, six.string_types)
          opcode = self.OPCODE_BINARY if binary else self.OPCODE_TEXT
          try:
              self.send_frame(message, opcode)
          except WebSocketError:
              raise WebSocketError("Socket is dead")
docs: Send a frame over the websocket with message as its payload