mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
planning nicknames system
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
# general idea:
|
# general idea:
|
||||||
- users will be able to have and set nicknames
|
- users will be able to have and set nicknames
|
||||||
- a user's nickname will store in the browser cookie system
|
- a user's nickname will store in the browser using persistence.js
|
||||||
|
- the user's nickname should probably just be in socket.data.nickname
|
||||||
|
- on connection, the web UI will tell the server "this is my nickname"
|
||||||
|
- completely enforced by the web UI
|
||||||
|
- replace any place in the web UI that shows a socket ID with the nickname
|
||||||
|
- list of users and nicknames will be sent in the session data to web clients
|
||||||
|
- this will be used in the future for a user list and chat
|
||||||
@@ -33,4 +33,4 @@ export function saveSettings(settings) {
|
|||||||
console.warn('Failed to write settings cookie', error); // eslint-disable-line no-console
|
console.warn('Failed to write settings cookie', error); // eslint-disable-line no-console
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user