Beispiel #1
0
def handle_connection(uid):
    print('a user has connected [uid]: ' + uid)
    chatrooms = db.getChatRooms(uid)
    for cr in chatrooms:
        roomid = extract_chat_id(cr)
        join_room(roomid)
Beispiel #2
0
def getChatRooms(uid):
    result = db.getChatRooms(uid)
    return jsonify({'result': result})