TypeError: The "listener" argument must be of type Function. Received type object

subscription.on("create", tweets)

what is tweets in this case?