def METHOD_NAME(self, terminal_id):
    terminal = self.mgr[terminal_id]
    q = terminal.output.register()
    while True:
        self.send({
            'type': 'data',
            'id': terminal_id,
            'data': q.get(),
        })