Chat for Eltech university students with admins functionality
https://github.com/Lmglk/Eltechat
Message from user:
{"flag":"message", "messageId":0, "name":"megalok", "message":"text"}
(Admin) Delete message:
{"flag":"deleteMessage", "messageId":0}
Login successfully:
{"flag":"loginSuccess"}
Login failure because of nickname:
{"flag":"loginFailureNickname"}
Login failure because of server internal error:
{"flag":"loginServerFailure"}
Another user login:
{"flag":"newUserConnect", "name":"Komdosh", "online":1}
Another user logout:
{"flag":"userDisconnect", "name":"Komdosh", "online":2}
(Admin) Kick user:
{"flag":"kick", "name":"Komdosh"}
(Admin) Mute user:
{"flag":"mute", "name":"megalok"}
Message:
{"flag":"message", "name":"megalok", "message":"text"}
(Admin) Delete user: (field "sec" current is not implemented)
{"flag":"deleteMessage", "messageId":0, "sec":"1234"}
(Admin) Kick user: (field "sec" current is not implemented)
{"flag":"kick", "name":"Komdosh", "sec":"g134f"}
(Admin) Mute user:
{"flag":"mute", "name":"megalok"}
(Admin) Unmute user:
{"flag":"unmute", "name":"megalok"}