Update: 2026-07-22 00:39:28
This commit is contained in:
@@ -127,6 +127,17 @@ async function simulateTrip(tripIndex) {
|
||||
socket.on('connect', async () => {
|
||||
console.log(`[Trip ${tripIndex}] ✅ Driver connected to socket.`);
|
||||
|
||||
// Register driver location in Redis available pool
|
||||
socket.emit('update_location', {
|
||||
lat: 31.95,
|
||||
lng: 35.91,
|
||||
heading: 90,
|
||||
speed: 0,
|
||||
status: 'off'
|
||||
});
|
||||
|
||||
await new Promise(r => setTimeout(r, 200));
|
||||
|
||||
// 2. Passenger Requests Ride
|
||||
try {
|
||||
const addRideFormData = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user