Sockets are needed so that the driver would receive the message that the rider would like a ride from them and so that the rider would receive the message of a confirmation or a denial of the ride from the requested driver.
Cases:
When a rider is moved to the confirm page, drivers that are online need to be displayed as an option for the rider to choose. This needs to be performed using socket communication.
A driver will receive a request from the rider for the ride. The response will be sent to the rider using sockets.
Sockets are needed so that the driver would receive the message that the rider would like a ride from them and so that the rider would receive the message of a confirmation or a denial of the ride from the requested driver.
Cases: