Skip to content
Qais Patankar edited this page Jul 2, 2016 · 6 revisions

Events


chatMessage

{
    message: 'test',
    time: 1445428545192,
    type: 'chat-message',
    user: {userObject},
    id: '5609c755970e920300a44e88-1445428545192'
}

chatSkip

{
    type: 'chat-skip',
    user: {userObject}
}

deleteChatMessage

{
    type: 'delete-chat-message',
    user: {userObject},
    id: '5609c755970e920300a44e88-1445428545192'
}

roomPlaylistDub

{
    type: 'room_playlist-dub',
    user: {userObject},
    dubtype: 'updub'
}

roomPlaylistGrab

{
    type: 'room_playlist-queue-update-grabs',
    user: {userObject}
}

roomPlaylistQueueUpdate

{
    type: 'room_playlist-queue-update-dub',
    queue: [
        {
            id: '56704de5eb9a1968003b7a23',
            uid: '56003aba621a9e03003165b8',
            media: {mediaObject},
            user: {userObject}
        },
        {
            id: '56691ded8bed46b9007752ca',
            uid: '560980dcd3ec4d030049c986',
            media: {mediaObject},
            user: {userObject}
        },
        {...}
    ]
}

roomPlaylistUpdate

{
    startTime: -1,
    type: 'room_playlist-update',
    lastPlay: {
        id: '562564be6b682b29004e7e10',
        media: {mediaObject},
        user: {userObject},
        score: {
            updubs: 5,
            grabs: 0,
            downdubs: 0
        }
    },
    media: {mediaObject},
    user: {userObject},
    id: '5626ec596d3e992800d9c461'
}

roomUpdate

{
    room: {roomObject},
    type: 'room-update'
}

userBan

{
    time: '0',
    user: {userObject},
    type: 'user-ban',
    mod: {userObject}
}

userImageUpdate

{
    type: 'user_update',
    user: {userObject}
}

userJoin

{
    user: {userObject},
    type: 'user-join'
}

userKick

{
    message: '',
    user: {userObject},
    type: 'user-kick',
    mod: {userObject}
}

userLeave

{
    user: {userObject},
    type: 'user-leave'
}

userMute

{
    user: {userObject},
    type: 'user-mute',
    mod: {userObject}
}

userSetRole

{
    user: {userObject},
    type: 'user-setrole',
    mod: {userObject}
}

userUnban

{
    user: {userObject},
    type: 'user-unban',
    mod: {userObject}
}

userUnmute

{
    user: {userObject},
    type: 'user-unmute',
    mod: {userObject}
}

userUnsetRole

{
    user: {userObject},
    type: 'user-unsetrole',
    mod: {userObject}
}

userUpdate

{
    type: 'user-update',
    user: {userObject}
}