code: def _send(self, msg):
          
          if isinstance(msg, six.binary_type):
              method = uwsgi.websocket_send_binary
          else:
              method = uwsgi.websocket_send
          if self._req_ctx is not None:
              method(msg, request_context=self._req_ctx)
          else:
              method(msg)
docs: Transmits message either in binary or UTF-8 text mode,
          depending on its type.