Share players position using Socket.IO
- I stocked information user (id, room and position) in socket client. - I created function to send all information every few 10 milliseconds. Note : when the front will be available, we must check the performance of back server.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const SECRET_KEY = process.env.SECRET_KEY || "THECODINGMACHINE_SECRET_KEY";
|
||||
const ROOM = process.env.ROOM || "THECODINGMACHINE";
|
||||
|
||||
export {
|
||||
SECRET_KEY
|
||||
SECRET_KEY,
|
||||
ROOM
|
||||
}
|
||||
Reference in New Issue
Block a user