Spaces:
Sleeping
Sleeping
|
Download sockets.md from Arcader7171/InterState: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/Arcader7171/InterState/resolve/main/sockets.md
- Command line
-
hf download hf://spaces/Arcader7171/InterState/sockets.md
-
curl -L -o sockets.md https://huggingface.co/spaces/Arcader7171/InterState/resolve/main/sockets.md
1.19 kB
Sockets
Considering how f*cken cool websockets and socketio is for realtime, I'm gonna use it. However, if I'm going to use it, some conventions, rules, tips, and definitions are needed.
Conventions
Chat
- Room name format
- {server name}/{channel name}
- Ex - main/general
- Presences (who is connected, and where)
- Sent to
- Admin pages
- Users in the same channel
- Online when
- Socket is connected
- Sent to
- Room name format
Admin
- Room name format
- {purpose/data}
- Ex - online_users
- Presences
- None
- Room name format
DM
Room name format
- {user id (lower)}-{user id (higher))}
- Ex - 1-2
Presences
- not used
Group DM
- NIY (Not Implemented Yet)
Definitions
- Namespaces
- Chat
- Used for the main chatting and yapping. Follows the server/channel format, and handles all events for clients speaking in public and private servers
- Admin
- Used to collect necessary performance data, and up-to-date reports for bugs and others
- DM
- Used to handle messages traveling between two users.
- Chat
- Events