def __init__(self,
                 response,
                 noContextTakeover=None):
        if not isinstance(response, PerMessageSnappyResponse):
            raise Exception("invalid type %s for response" % type(response))

        self.response = response

        if noContextTakeover is not None:
            if type(noContextTakeover) != bool:
                raise Exception("invalid type %s for noContextTakeover" % type(noContextTakeover))

            if response.client_no_context_takeover and not noContextTakeover:
                raise Exception("invalid value %s for noContextTakeover - server requested feature" % noContextTakeover)

        self.noContextTakeover = noContextTakeover
Constructor.
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/websocket/compress_snappy.py/PerMessageSnappyResponseAccept.__init__