Correct me if i am wrong, i think the use of ws in your examples callbacks is just a naming convention that you chose to take, although it has nothing to do with self.ws = self.factory.ws which is an alias for the actual websocket in the KiteTicker …