✨ Move basic SocketIO session handling to redis
This commit is contained in:
@@ -60,6 +60,9 @@ SPDX-License-Identifier: MPL-2.0
|
||||
connect();
|
||||
}
|
||||
});
|
||||
socket.on("session_id", (d) => {
|
||||
const session_id = d.session_id
|
||||
})
|
||||
|
||||
socket.on('registered_as_admin', (data) => {
|
||||
quiz_data = JSON.parse(data['game']);
|
||||
|
||||
@@ -72,6 +72,9 @@ SPDX-License-Identifier: MPL-2.0
|
||||
socket.on('time_sync', (data) => {
|
||||
socket.emit('echo_time_sync', data);
|
||||
});
|
||||
socket.on("session_id", (d) => {
|
||||
const session_id = d.session_id
|
||||
})
|
||||
|
||||
socket.on('connect', async () => {
|
||||
console.log('Connected!');
|
||||
|
||||
Reference in New Issue
Block a user