Socket rewrite

This commit is contained in:
Евгений Титаренко 2023-07-10 18:40:46 +03:00
parent cf16878503
commit 89431be9ed
4 changed files with 187 additions and 39 deletions

15
objects.py Normal file
View file

@ -0,0 +1,15 @@
from enum import Enum
class UserCheck(Enum):
USER_DOESNT_EXISTS = 0
INVALID_CREDENTIALS = 1
class ErrCode(Enum):
UNKNOWN_ERROR = 0
USER_ALREADY_EXISTS = 1
ALREADY_LOGGED_IN = 2
INVALID_CREDENTIALS = 3
INVALID_TOKEN = 4
ROOM_DOESNT_EXIST = 10