Credit to my sources:
- https://replit.com/@PogMaster9002/socketio-minimal-example?v=1#index.js
- Samples from https://socket.io/
Note that this app has CORS predefined to allow everything. Please configure this properly for use in production environments.