def initialize(self, server):
        self.server = server
        self.session = None

        self._is_active = not self.server.settings['websocket_check']
        self._global_heartbeats = self.server.settings['global_heartbeats']

        logger.debug('Initializing %s handler.' % self.name)

    # Additional verification of the websocket handshake
    # For now it will stay here, till https://github.com/facebook/tornado/pull/415
    # is merged.
dataset/ETHPy150Open mrjoes/tornadio2/tornadio2/persistent.py/TornadioWebSocketHandler.initialize/original