The socket server of hangouts app.
For details, please refer to project hangouts
Deployed on https://hangouts-youtube-socket-server.herokuapp.com/
=> hangouts app
Following are docs for the hangouts app.
ADD_VIDEO
: [object: video data]DELETE_VIDEO
: [number: index]PLAY
: [string: videoId]PLAY_NEXT
: no dataPLAY_PREVIOUS
: no dataPAUSE
: no dataRESUME
: no dataSYNC_TIME
: [number: play time]
-
new user
:{ data: [object] { roomName: [string: roomName] playlist: [array: playlist array] videoId: [string: current playing video id] } }
-
action
:{ type: [string: one of action type values] data: [object|number|string: corresponding payload data] }
-
welcome
:{ data: { playlist: [array: playlist data in current room] } }
-
action
:{ type: [string: one of action type values] data: [object|number|string: corresponding payload data] senderId: [string: socket id of the sender of this action] }
Following are docs for the admin stats app.
-
init stats
:{ numberOfUsers: [number: number of users of hangouts app] numberOfRooms: [number: number of rooms of hangouts app] }
-
update user
:+1 | -1
-
update room
:+1 | -1