-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.py
75 lines (51 loc) · 2.06 KB
/
events.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# When a client opens the socket
CONNECT = "connect";
# When a client attempts login
LOGIN = "login";
# When the server replies to login
LOGIN_STATUS = "login status";
# When the client asks for the floor list
GET_FLOOR_LIST = "get floor list";
# When the client asks for the floor list
FLOOR_LIST_UPDATE = "floor list update";
# When the Song List is updated for the Floor
SONG_LIST_UPDATE = "song list update";
# When the Message List is updated for the Floor
USER_LIST_UPDATE = "member list update";
# When the Message List is updated for the Floor
MESSAGE_LIST_UPDATE = "message list update";
# When the UI requests the most recent Song List
GET_SONG_LIST = "get song list";
# When the UI requests the most recent Message List
GET_MESSAGE_LIST = "get message list";
# When the UI requests the most recent User List
GET_USER_LIST = "get member list";
# When a member leaves the Floor that LocalUser is in
USER_REMOVE = "remove member";
# When a member joins the Floor that LocalUser is in
USER_ADD = "add member";
# When there is a new message from the server to add to the Floor
MESSAGE_ADD = "add message";
# When the current LocalUser sends a message
MESSAGE_SEND = "new message";
# When the user requests to join the floor
JOIN_FLOOR = "join floor";
# When the user requests to leave the floor
LEAVE_FLOOR = "leave floor";
# When the server acknowledges that the client has joined the floor
# This event also contains the entire floor object period.
FLOOR_JOINED = "floor joined";
#When client requests profile update
PROFILE_UPDATE = "update profile"
#When profile has been updated it will emit this message
#The event contains the member object with updates
PROFILE_UPDATED = "profile updated"
#When user selects a new song to be added to the queue
SONG_PICKED = 'song picked'
#When sever acknowledges the picked song, and updates the song list
#and user pick queue accordingly. This event contains the user queue update
USER_QUE_UPDATE = 'user queue update'
#When client sends message periodically
PING = 'ping'
#when user pings server, emits this message
PONG = 'pong'