mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
17 lines
309 B
JavaScript
17 lines
309 B
JavaScript
export default class SessionsManager {
|
|
constructor() {
|
|
this.sessions = {}
|
|
}
|
|
|
|
newSession = (id, session) => {
|
|
this.sessions[id] = session
|
|
}
|
|
|
|
getSession = (id) => {
|
|
return this.sessions[id]
|
|
}
|
|
|
|
removeSession = (id) => {
|
|
delete this.sessions[id]
|
|
}
|
|
} |