def get_file_descriptor(self):
        """Return the file descriptor for the given websocket"""
        try:
            return uwsgi.connection_fd()
        except IOError as e:
            self.close()
            raise WebSocketError(e)
Return the file descriptor for the given websocket
ws4redis/uwsgi_runserver.py