A very basic web multiplayer real-time game implemented using Servant and Websockets. It can serve as an example on how to set up websockets with authentication in your Servant app.
You need to have stack
installed together with npm
.
In the root folder of the repository, run stack run
.
While inside the client
folder, run npm run start
.
Note: if you encounter an error about history
you may need to run npm install --save history
There are a few TODOs at the bottom of this readme. Feel free to tackle some of those or submit any improvements that you think make sense.
This project is licensed under the MIT License.
- When a new user logs in, the "Available players" list should be updated in real time.
- Users should be invalidated after a certain amount of time has passed without them being active.
- When a person leaves the game/loses connection, the game should stop.