<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def subscribe(self, transport, data):
 """ adds a transport to a channel """


        self.add(transport, address=data.get('hx_subscribe').encode())

        self.send(
            data['hx_subscribe'],
            {'message': "%r is listening" % transport}
        )