def add_client(self, user_id=None):
if user_id is None:<EOL><INDENT>self.channel = '<STR_LIT>'<EOL>user_id = uuid.uuid1().hex<EOL><DEDENT>else:<EOL><INDENT>self.channel = '<STR_LIT>'<EOL><DEDENT>self.id = user_id<EOL>self.channels[self.channel][self.id] = self<EOL>print('<STR_LIT>' % self.channel)<EOL>
Adds current instance to public or private channel.
If user_id is specified it will be added to the private channel,
If user_id is not specified it will be added to the public one instead.