def set_stream(self,stream):
self.jid=stream.me<EOL>self.stream=stream<EOL>for r in self.rooms.values():<EOL><INDENT>r.set_stream(stream)<EOL><DEDENT>
Change the stream assigned to `self`.

:Parameters:
    - `stream`: the new stream to be assigned to `self`.
:Types:
    - `stream`: `pyxmpp.stream.Stream`