def unsubscribe(self, frame):
dest = frame.headers.get('<STR_LIT>')<EOL>if not dest:<EOL><INDENT>raise ProtocolError('<STR_LIT>')<EOL><DEDENT>if dest.startswith('<STR_LIT>'):<EOL><INDENT>self.engine.queue_manager.unsubscribe(self.engine.connection, dest)<EOL><DEDENT>else:<EOL><INDENT>self.engine.topic_manager.unsubscribe(self.engine.connection, dest)<EOL><DEDENT>
Handle the UNSUBSCRIBE command: Removes this connection from destination.