def open(self, pysession_id):
        '''
        Called when client opens connection. Initialization
        is done here.
        '''
        self.id = id(self)
        self.funcserver = self.application.funcserver
        self.pysession_id = pysession_id

        # register this connection with node
        self.state = self.funcserver.websocks[self.id] = {'id': self.id, 'sock': self}
Called when client opens connection. Initialization
        is done here.